mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
check for children cleanup prior to checking for termination.
That allows to quickly terminate after the secmod death is detected.
This commit is contained in:
@@ -571,6 +571,10 @@ static void check_other_work(main_server_st *s)
|
||||
reload_conf = 0;
|
||||
}
|
||||
|
||||
if (need_children_cleanup != 0) {
|
||||
cleanup_children(s);
|
||||
}
|
||||
|
||||
if (terminate != 0) {
|
||||
mslog(s, NULL, LOG_DEBUG, "termination signal received; waiting for children to die");
|
||||
kill_children(s);
|
||||
@@ -590,10 +594,6 @@ static void check_other_work(main_server_st *s)
|
||||
expire_banned(s);
|
||||
alarm(MAINTAINANCE_TIME(s));
|
||||
}
|
||||
|
||||
if (need_children_cleanup != 0) {
|
||||
cleanup_children(s);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBWRAP
|
||||
|
||||
Reference in New Issue
Block a user