mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
allow positive values to waitpid
This commit is contained in:
@@ -847,7 +847,7 @@ unsigned total = 10;
|
||||
remove(s->config->occtl_socket_file);
|
||||
remove_pid_file();
|
||||
|
||||
while (waitpid(-1, NULL, WNOHANG) == 0) {
|
||||
while (waitpid(-1, NULL, WNOHANG) >= 0) {
|
||||
if (total == 0) {
|
||||
mslog(s, NULL, LOG_INFO, "not everyone died; forcing kill");
|
||||
kill(0, SIGKILL);
|
||||
|
||||
Reference in New Issue
Block a user