From: Michael Poole Date: Mon, 24 Mar 2008 02:34:11 +0000 (-0400) Subject: src/mail-sendmail.c: Apparently SIGCHLD needs to be SIG_DFL, not SIG_IGN. X-Git-Tag: v1.4.0-rc3~26 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=e8686f6cf0a6999d4bee503479d572317bbb9799 src/mail-sendmail.c: Apparently SIGCHLD needs to be SIG_DFL, not SIG_IGN. --- 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) {