summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-23 02:37:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-23 02:37:02 +0200
commit47a34ece26a093102675e0a2dfc42c8182b98257 (patch)
treec368e9227ea5a79d5b66c50fff991c5886a168bb /src/fastd.c
parent6b72d65ebb3ed508cdd24ab4c89bd76492dc1ad8 (diff)
downloadfastd-47a34ece26a093102675e0a2dfc42c8182b98257.tar
fastd-47a34ece26a093102675e0a2dfc42c8182b98257.zip
Revert "Fix waitpid race condition"
This reverts commit 47d84679d6fe71f56d3a013578007dff92ff72db.
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c1
1 files changed, 1 insertions, 0 deletions
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) {