Mercurial > masqmail
diff src/child.c @ 71:98cda87105a7
removed dead code (a SIGCHLD handler)
this code probably had a bug anyway:
the handler inserts itself for a different signal again
author | meillo@marmaro.de |
---|---|
date | Wed, 16 Jun 2010 10:14:50 +0200 |
parents | 26e34ae9a3e3 |
children | fc1c6425c024 |
line wrap: on
line diff
--- 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);