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:
070939e
)
wait4 instead of waitpid
author
Jagger
<robert@swiecki.net>
Thu, 5 May 2016 03:07:21 +0000
(
05:07
+0200)
committer
Jagger
<robert@swiecki.net>
Thu, 5 May 2016 03:07:21 +0000
(
05:07
+0200)
subproc.c
patch
|
blob
|
history
diff --git
a/subproc.c
b/subproc.c
index fd06379a0078e4404bf148a52d03e8cb1f55af64..89cca1649f80561a26987fbcf0ef3b84cdab9d6b 100644
(file)
--- a/
subproc.c
+++ b/
subproc.c
@@
-162,7
+162,7
@@
int subprocReap(struct nsjconf_t *nsjconf)
subprocSeccompViolation(&si);
}
- if (wait
pid(si.si_pid, &status, WNOHANG
) == si.si_pid) {
+ if (wait
4(si.si_pid, &status, WNOHANG, NULL
) == si.si_pid) {
if (WIFEXITED(status)) {
subprocRemove(nsjconf, si.si_pid);
LOG_I("PID: %d exited with status: %d, (PIDs left: %d)", si.si_pid,