mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
added a more graceful termination of workers.
This commit is contained in:
@@ -535,8 +535,9 @@ int main(int argc, char** argv)
|
||||
|
||||
for (;;) {
|
||||
if (terminate != 0) {
|
||||
mslog(&s, NULL, LOG_DEBUG, "termination signal received; waiting for children to die");
|
||||
kill_children(&clist);
|
||||
sleep(1);
|
||||
while (waitpid(-1, NULL, 0) > 0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user