src/mail-sendmail.c: Apparently SIGCHLD needs to be SIG_DFL, not SIG_IGN.
authorMichael Poole <mdpoole@troilus.org>
Mon, 24 Mar 2008 02:34:11 +0000 (22:34 -0400)
committerMichael Poole <mdpoole@troilus.org>
Mon, 24 Mar 2008 02:34:11 +0000 (22:34 -0400)
src/mail-sendmail.c

index ce2538e4d9c1c8e4a11b2cf1de6fa7c7333844ae..5da1fc96e0b485a35806b8de8b2401ca8d673a0d 100644 (file)
@@ -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) {