explicitly close the logging subsystem

This commit is contained in:
Nikos Mavrogiannopoulos
2013-02-08 19:30:14 +01:00
parent b6f7abb3f4
commit 6ac7986342
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -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: