# HG changeset patch # User meillo@marmaro.de # Date 1276676090 -7200 # Node ID 98cda87105a730cdb072c6de3b9ccd067c171a81 # Parent 805559d95d0ca5b57dfd18ac3cfa1203c9b32f67 removed dead code (a SIGCHLD handler) this code probably had a bug anyway: the handler inserts itself for a different signal again diff -r 805559d95d0c -r 98cda87105a7 src/child.c --- a/src/child.c Sun May 30 21:01:45 2010 +0200 +++ b/src/child.c Wed Jun 16 10:14:50 2010 +0200 @@ -27,14 +27,6 @@ #include "masqmail.h" -int volatile sigchild_seen = 0; - -static void -sigchild_handler(int sig) -{ - sigchild_seen = 1; - signal(SIGHUP, sigchild_handler); -} int child(const char *command) @@ -44,11 +36,6 @@ if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe) == 0) { pid_t pid; - /* - sigchild_seen = 0; - signal(SIGCHLD, sigchild_handler); - */ - pid = fork(); if (pid == 0) { int i, max_fd = sysconf(_SC_OPEN_MAX);