From e6ad38a5409b18b573a59177ea8bb21c22747964 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 18 Apr 2014 16:50:32 +0200 Subject: Fix zombie process cleanup --- 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 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) { -- cgit v1.2.3