Mercurial > masqmail
changeset 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 (2010-06-16) |
parents | 805559d95d0c |
children | ad034b57f3b2 |
files | src/child.c |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
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);