summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 01:33:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 01:33:02 +0200
commitb54d87d26f787a15d1991c6b6c03dfc915922ba6 (patch)
tree10a0b27cf46db328a523502bb9b56106b30795ae
parent1d38bad8572a6c29b0ddc12ba13b29d93aeb5b33 (diff)
downloadfastd-b54d87d26f787a15d1991c6b6c03dfc915922ba6.tar
fastd-b54d87d26f787a15d1991c6b6c03dfc915922ba6.zip
Fix waitpid EINTR error on SIGCHLD
waitpid may fail with EINTR for SIGCHLD even when all signals are blocked.
-rw-r--r--src/fastd.c2
1 files changed, 1 insertions, 1 deletions
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;
}