projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uloop: retry waitpid on signal interrupt
[project/libubox.git]
/
uloop.c
diff --git
a/uloop.c
b/uloop.c
index
6ef7210
..
45f7c5d
100644
(file)
--- 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;