Block SIGPIPE in send_mail() so sudo is not killed by a problem
executing the mailer.
This commit is contained in:
@@ -445,6 +445,7 @@ send_mail(line)
|
|||||||
|
|
||||||
(void) sigemptyset(&set);
|
(void) sigemptyset(&set);
|
||||||
(void) sigaddset(&set, SIGCHLD);
|
(void) sigaddset(&set, SIGCHLD);
|
||||||
|
(void) sigaddset(&set, SIGPIPE);
|
||||||
(void) sigprocmask(SIG_BLOCK, &set, &oset);
|
(void) sigprocmask(SIG_BLOCK, &set, &oset);
|
||||||
|
|
||||||
if (pipe(pfd) == -1)
|
if (pipe(pfd) == -1)
|
||||||
|
Reference in New Issue
Block a user