From b0710d0dfd6a39e220b9924148d0889f9662362e Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 2 Mar 2015 09:36:32 -0700 Subject: [PATCH] Fix cut & pasto that prevented the SIGPIPE handler from being restored before returning from tgetpass(). From mancha --HG-- branch : 1.7 --- tgetpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgetpass.c b/tgetpass.c index 446ce10bd..f9876422d 100644 --- a/tgetpass.c +++ b/tgetpass.c @@ -155,7 +155,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); -- 2.50.1