Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-17 14:27:44 +0300
committerFelix Fietkau <nbd@nbd.name>2016-05-17 14:27:44 +0300
commitb06cd8c58e276a44fbe19f9ed5b1a7a74e5ca4e3 (patch)
tree828308cc2cc5bf39d89984a631e2dba98358b913 /uloop.c
parent6a75b3b6437d3c98d852c1bca131c8f81646f2f5 (diff)
uloop: retry waitpid on signal interrupt
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'uloop.c')
-rw-r--r--uloop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uloop.c b/uloop.c
index 6ef7210..45f7c5d 100644
--- a/uloop.c
+++ b/uloop.c
@@ -311,6 +311,9 @@ static void uloop_handle_processes(void)
while (1) {
pid = waitpid(-1, &ret, WNOHANG);
+ if (pid < 0 && errno == EINTR)
+ continue;
+
if (pid <= 0)
return;