Commit 0503f060 authored by Andrew Tridgell's avatar Andrew Tridgell

continue calling waitpid() while still reapingchildren (patch from

Matti Aarnio)
parent f855a7d0
......@@ -255,7 +255,7 @@ void start_accept_loop(int port, int (*fn)(int ))
but I have had reports that on Digital Unix zombies
are produced, so this ensures that they are reaped */
#ifdef WNOHANG
waitpid(-1, NULL, WNOHANG);
while (waitpid(-1, NULL, WNOHANG) > 0);
#endif
if (fork()==0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment