Don't block SIGINT in getpass(3); this doesn't make sense.
This commit is contained in:
parent
9f234b3662
commit
5237ee4167
@ -67,7 +67,7 @@ getpass(prompt)
|
||||
* note - blocking signals isn't necessarily the
|
||||
* right thing, but we leave it for now.
|
||||
*/
|
||||
omask = sigblock(sigmask(SIGINT)|sigmask(SIGTSTP));
|
||||
omask = sigblock(sigmask(SIGTSTP));
|
||||
(void)tcgetattr(fileno(fp), &term);
|
||||
if (echo = (term.c_lflag & ECHO)) {
|
||||
term.c_lflag &= ~ECHO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user