Subject: Re: bin/10879: su does not reset terminal settings after Ctrl-C
To: James Chacon <jchacon@genuity.net>
From: Lucio De Re <lucio@proxima.alt.za>
List: netbsd-bugs
Date: 08/24/2000 16:54:23
On Thu, Aug 24, 2000 at 12:46:04AM -0400, James Chacon wrote:
> 
> Ok, this is gonna require some thinking to fix the behavior.
> 
You left out one possible option: block signals in getpass only if
they are default.  Let su do its own intercept, and getpass can then
assume that if the signals are being handled, it does not have to do
so itself.  Su will have to include both a signal handler and a term
setting restore, but that seems like a reasonable expectation.

++L