Block SIGPIPE in send_mail() so sudo is not killed by a problem

executing the mailer.
This commit is contained in:
Todd C. Miller
2008-03-17 15:09:38 +00:00
parent 52710ce517
commit b7b807e107

View File

@@ -445,6 +445,7 @@ send_mail(line)
(void) sigemptyset(&set);
(void) sigaddset(&set, SIGCHLD);
(void) sigaddset(&set, SIGPIPE);
(void) sigprocmask(SIG_BLOCK, &set, &oset);
if (pipe(pfd) == -1)