Better handling of return value from waitpid.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@394 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-04-15 02:42:01 +00:00
parent 4b262d0173
commit 65e69e54ca

View File

@@ -221,7 +221,7 @@ childhandler ()
do {
pid = waitpid (-1, &status, WNOHANG|WUNTRACED);
} while(pid);
} while(pid > 0);
signal (SIGCHLD, childhandler);
}