From 6ac798634212e764828c3c6cf5caf325c0c78c5c Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 8 Feb 2013 19:30:14 +0100 Subject: [PATCH] explicitly close the logging subsystem --- src/main.c | 1 + src/worker-vpn.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 8427a91a..d6a7e469 100644 --- a/src/main.c +++ b/src/main.c @@ -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); } diff --git a/src/worker-vpn.c b/src/worker-vpn.c index ab0a47b2..5917a978 100644 --- a/src/worker-vpn.c +++ b/src/worker-vpn.c @@ -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: