projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43983cb
)
Check for WIFSTOPPED/WIFCONTINUED with wait4
author
Jagger
<robert@swiecki.net>
Sun, 28 Feb 2016 23:32:14 +0000
(
00:32
+0100)
committer
Jagger
<robert@swiecki.net>
Sun, 28 Feb 2016 23:32:14 +0000
(
00:32
+0100)
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index 9b76a865686a1d298d677bc3996fffd67ac9afad..f24d4b05ec5fe6aab8e5f60d67096953e380aebd 100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-74,6
+74,12
@@
static bool netSystemSbinIp(struct nsjconf_t *nsjconf, char *const *argv)
LOG_W("'/sbin/ip' killed with signal: %d", WTERMSIG(status));
return false;
}
+ if (WIFSTOPPED(status)) {
+ continue;
+ }
+ if (WIFCONTINUED(status)) {
+ continue;
+ }
LOG_W("Unknown exit status for '/sbin/ip' (pid=%d): %d", pid, status);
kill(pid, SIGKILL);
}