]> granicus.if.org Git - sudo/commitdiff
Block SIGPIPE in send_mail() so sudo is not killed by a problem
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Mar 2008 15:09:38 +0000 (15:09 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Mar 2008 15:09:38 +0000 (15:09 +0000)
executing the mailer.

logging.c

index 91c8431c3da04740a021fa55abdc3dfc471f6056..4454c3a4cc5fe3e88fe3cc4556132de7b129d584 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -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)