[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: licenses again

From: Simon Josefsson
Subject: [Bug-gnulib] Re: licenses again
Date: Wed, 29 Sep 2004 13:51:15 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Simon Josefsson wrote:
>> The code (untested, and I'm aware of one bug):
> Another bug is that if the user presses Ctrl-C while entering the password,
> the application will most probably not restore the terminal state before
> exiting, therefore the user's terminal will be hosed. (Forcing the user
> to type "stty sane" blindly is not friendly.)

The code used to use signal handlers to deal with that, but I later
read getpass.c in gnulib, which doesn't use signal handlers.  So I
tried to remove the signal handlers, and Ctrl-C still worked.  I.e.,
'stty sane' is not required to see what you type.  Perhaps it is bash
that fixes this?  And it wouldn't work with other shells?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]