masqmail-0.2

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
parents 805559d95d0c
children ad034b57f3b2
files src/child.c
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line diff
     1.1 --- a/src/child.c	Sun May 30 21:01:45 2010 +0200
     1.2 +++ b/src/child.c	Wed Jun 16 10:14:50 2010 +0200
     1.3 @@ -27,14 +27,6 @@
     1.4  
     1.5  #include "masqmail.h"
     1.6  
     1.7 -int volatile sigchild_seen = 0;
     1.8 -
     1.9 -static void
    1.10 -sigchild_handler(int sig)
    1.11 -{
    1.12 -	sigchild_seen = 1;
    1.13 -	signal(SIGHUP, sigchild_handler);
    1.14 -}
    1.15  
    1.16  int
    1.17  child(const char *command)
    1.18 @@ -44,11 +36,6 @@
    1.19  	if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe) == 0) {
    1.20  		pid_t pid;
    1.21  
    1.22 -		/*
    1.23 -		   sigchild_seen = 0;
    1.24 -		   signal(SIGCHLD, sigchild_handler);
    1.25 -		 */
    1.26 -
    1.27  		pid = fork();
    1.28  		if (pid == 0) {
    1.29  			int i, max_fd = sysconf(_SC_OPEN_MAX);