From b54d87d26f787a15d1991c6b6c03dfc915922ba6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 Aug 2014 01:33:02 +0200 Subject: Fix waitpid EINTR error on SIGCHLD waitpid may fail with EINTR for SIGCHLD even when all signals are blocked. --- src/fastd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastd.c b/src/fastd.c index 0f74984..247b390 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -562,7 +562,7 @@ static inline void reap_zombies(void) { pr_debug("child process %u finished", (unsigned)pid); } else { - if (errno == ECHILD) { + if (errno == ECHILD || errno == EINTR) { i++; continue; } -- cgit v1.2.3