aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-02-11 08:13:37 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-02-11 08:13:37 +0000
commit091117fe002ffc353bedba51326da9232def2306 (patch)
tree32678df772988128fbc8d68fbb0e9195722ec109 /daemon.c
parent0666f5196746e859534224189449f899ee1e2ab4 (diff)
downloadfetchmail-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index f71d0343..5c66ed5a 100644
--- a/daemon.c
+++ b/daemon.c
@@ -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
}