summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-18 16:50:32 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-18 16:50:32 +0200
commite6ad38a5409b18b573a59177ea8bb21c22747964 (patch)
tree4b82facd067e128bec96b8cd8443fe5148198e57 /src/fastd.c
parent87dd930beddef23e7278df476584d9071b76929c (diff)
downloadfastd-e6ad38a5409b18b573a59177ea8bb21c22747964.tar
fastd-e6ad38a5409b18b573a59177ea8bb21c22747964.zip
Fix zombie process cleanup
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 9761715..2a31da2 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(fastd_context_t *ctx) {