aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
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)