From e8686f6cf0a6999d4bee503479d572317bbb9799 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 23 Mar 2008 22:34:11 -0400 Subject: [PATCH] src/mail-sendmail.c: Apparently SIGCHLD needs to be SIG_DFL, not SIG_IGN. --- src/mail-sendmail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mail-sendmail.c b/src/mail-sendmail.c index ce2538e..5da1fc9 100644 --- a/src/mail-sendmail.c +++ b/src/mail-sendmail.c @@ -94,10 +94,10 @@ mail_send(struct userNode *from, struct handle_info *to, const char *subject, co } else if (child > 0) { return; } - /* Replace the old SIGCHLD signal handler. */ + /* Reset the SIGCHLD signal handler to the default. */ memset(&sv, 0, sizeof(sv)); sigemptyset(&sv.sa_mask); - sv.sa_handler = SIG_IGN; + sv.sa_handler = SIG_DFL; sigaction(SIGCHLD, &sv, NULL); /* We're in a child now; must _exit() to die properly. */ if (pipe(infds) < 0) { -- 2.20.1