Fix cut & pasto that prevented the SIGPIPE handler from being

restored before returning from tgetpass().  From mancha
This commit is contained in:
Todd C. Miller
2015-03-02 08:49:04 -07:00
parent f25cf99679
commit b78a985bf0

View File

@@ -174,7 +174,7 @@ restore:
(void) sigaction(SIGTSTP, &savetstp, NULL);
(void) sigaction(SIGTTIN, &savettin, NULL);
(void) sigaction(SIGTTOU, &savettou, NULL);
(void) sigaction(SIGTTOU, &savepipe, NULL);
(void) sigaction(SIGPIPE, &savepipe, NULL);
if (input != STDIN_FILENO)
(void) close(input);