From 091117fe002ffc353bedba51326da9232def2306 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Feb 1998 08:13:37 +0000 Subject: Philippe de Muyter's port patches. svn path=/trunk/; revision=1616 --- daemon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index f71d0343..5c66ed5a 100644 --- a/daemon.c +++ b/daemon.c @@ -10,7 +10,9 @@ #include #include #include +#ifdef HAVE_SYS_WAIT_H #include +#endif #ifdef HAVE_FCNTL_H #include #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 } -- cgit v1.2.3