Check for WIFSTOPPED/WIFCONTINUED with wait4

This commit is contained in:
Jagger 2016-02-29 00:32:14 +01:00
parent 43983cbb17
commit e0a6908348

6
net.c
View File

@ -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);
}