X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=daemon.c;h=8f39e86cfe48f18b1c9ed0e86a0039e26258f00f;hb=adad2fc62f159c7e43c36af0ad4f9bf9f6b3efc7;hp=65e01772662bef066bead14ad6087a7f2d60bbc6;hpb=731dfc97001b4fba470afbeed0c52af82bceeeab;p=~andy%2Ffetchmail diff --git a/daemon.c b/daemon.c index 65e01772..8f39e86c 100644 --- a/daemon.c +++ b/daemon.c @@ -33,26 +33,10 @@ static void sigchld_handler (int sig) /* process SIGCHLD to obtain the exit code of the terminating process */ { -#if defined(HAVE_WAITPID) /* the POSIX way */ int status; while (waitpid(-1, &status, WNOHANG) > 0) continue; /* swallow 'em up. */ -#elif defined(HAVE_WAIT3) /* the BSD way */ - pid_t pid; -#if defined(HAVE_UNION_WAIT) && !defined(__FreeBSD__) - union wait status; -#else - int status; -#endif - - while ((pid = wait3(&status, WNOHANG, 0)) > 0) - continue; /* swallow 'em up. */ -#else /* Zooks! Nothing to do but wait(), and hope we don't block... */ - int status; - - wait(&status); -#endif lastsig = SIGCHLD; (void)sig; }