X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmail-sendmail.c;h=5da1fc96e0b485a35806b8de8b2401ca8d673a0d;hb=e8686f6cf0a6999d4bee503479d572317bbb9799;hp=ce2538e4d9c1c8e4a11b2cf1de6fa7c7333844ae;hpb=70fd0d3c01ca33d019fda85e26b0af4266e36d70;p=srvx.git 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) {