From e17f8194cadc0f11a53cd9ed6d4291dc6732a2f2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 8 May 1997 20:25:25 +0000 Subject: Improved configuration and compilation. svn path=/trunk/; revision=985 --- daemon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'daemon.c') 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) -- cgit v1.2.3