diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 01:33:02 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 01:33:02 +0200 |
commit | b54d87d26f787a15d1991c6b6c03dfc915922ba6 (patch) | |
tree | 10a0b27cf46db328a523502bb9b56106b30795ae /src | |
parent | 1d38bad8572a6c29b0ddc12ba13b29d93aeb5b33 (diff) | |
download | fastd-b54d87d26f787a15d1991c6b6c03dfc915922ba6.tar fastd-b54d87d26f787a15d1991c6b6c03dfc915922ba6.zip |
Fix waitpid EINTR error on SIGCHLD
waitpid may fail with EINTR for SIGCHLD even when all signals are blocked.
Diffstat (limited to 'src')
-rw-r--r-- | src/fastd.c | 2 |
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; } |