From: Adam Dickmeiss Date: Fri, 1 Nov 2013 13:49:55 +0000 (+0000) Subject: daemon: only wait for immediate child YAZ-704 X-Git-Tag: v5.0.3~11 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=bc86f4cb335deebc4bd7e59db33ad503b04a827d;p=yaz-moved-to-github.git daemon: only wait for immediate child YAZ-704 rather than all children. --- diff --git a/src/daemon.c b/src/daemon.c index 3b757e1..87db405 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -127,7 +127,7 @@ static void keepalive(void (*work)(void *data), void *data) /* enable signalling in kill_child_handler */ child_pid = p; - p1 = wait(&status); + p1 = waitpid(p, &status, 0); /* disable signalling in kill_child_handler */ child_pid = 0;