From 47a34ece26a093102675e0a2dfc42c8182b98257 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 23 May 2014 02:37:02 +0200 Subject: Revert "Fix waitpid race condition" This reverts commit 47d84679d6fe71f56d3a013578007dff92ff72db. --- src/fastd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index aabcaba..789b3a6 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -75,6 +75,7 @@ static void on_sigusr1(int signo UNUSED) { } static void on_sigchld(int signo UNUSED) { + while (waitpid(-1, NULL, WNOHANG) > 0) {} } static void init_signals(void) { -- cgit v1.2.3