aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-08 20:25:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-08 20:25:25 +0000
commite17f8194cadc0f11a53cd9ed6d4291dc6732a2f2 (patch)
tree8d9a6cc8d4d1f9190e8b3dbaed6f366c7f9cb11e /daemon.c
parent225b32b70c44288111f6229a61c0040e2f032082 (diff)
downloadfetchmail-e17f8194cadc0f11a53cd9ed6d4291dc6732a2f2.tar.gz
fetchmail-e17f8194cadc0f11a53cd9ed6d4291dc6732a2f2.tar.bz2
fetchmail-e17f8194cadc0f11a53cd9ed6d4291dc6732a2f2.zip
Improved configuration and compilation.
svn path=/trunk/; revision=985
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 8e270237..a0847731 100644
--- a/daemon.c
+++ b/daemon.c
@@ -50,7 +50,11 @@ sigchld_handler (int sig)
#endif
#if defined(HAVE_WAIT3)
+#ifdef hpux
+ while ((pid = wait3(&status, WNOHANG, (int *) 0)) > 0)
+#else
while ((pid = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0)
+#endif
; /* swallow 'em up. */
#elif defined(HAVE_WAITPID)
while ((pid = waitpid(-1, &status, WNOHANG)) > 0)