mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
explicitly close the logging subsystem
This commit is contained in:
@@ -537,6 +537,7 @@ int main(int argc, char** argv)
|
||||
if (terminate != 0) {
|
||||
mslog(&s, NULL, LOG_DEBUG, "termination signal received; waiting for children to die");
|
||||
kill_children(&clist);
|
||||
closelog();
|
||||
while (waitpid(-1, NULL, 0) > 0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -901,6 +901,7 @@ exit:
|
||||
if (ws->udp_state == UP_ACTIVE && ws->dtls_session)
|
||||
tls_close(ws->dtls_session);
|
||||
exit_nomsg:
|
||||
closelog();
|
||||
exit(1);
|
||||
|
||||
send_error:
|
||||
|
||||
Reference in New Issue
Block a user