Check for WIFSTOPPED/WIFCONTINUED with wait4
This commit is contained in:
parent
43983cbb17
commit
e0a6908348
6
net.c
6
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user