diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-02-11 08:13:37 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-02-11 08:13:37 +0000 |
commit | 091117fe002ffc353bedba51326da9232def2306 (patch) | |
tree | 32678df772988128fbc8d68fbb0e9195722ec109 /daemon.c | |
parent | 0666f5196746e859534224189449f899ee1e2ab4 (diff) | |
download | fetchmail-091117fe002ffc353bedba51326da9232def2306.tar.gz fetchmail-091117fe002ffc353bedba51326da9232def2306.tar.bz2 fetchmail-091117fe002ffc353bedba51326da9232def2306.zip |
Philippe de Muyter's port patches.
svn path=/trunk/; revision=1616
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,7 +10,9 @@ #include <errno.h> #include <signal.h> #include <sys/types.h> +#ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> +#endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #else /* !HAVE_FCNTL_H */ @@ -71,6 +73,8 @@ sigchld_handler (int sig) 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 } |