]> git.meshlink.io Git - meshlink/commitdiff
Reopen log file after SIGHUP.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 6 Jun 2011 19:19:30 +0000 (21:19 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 6 Jun 2011 19:19:30 +0000 (21:19 +0200)
This was missed by the previous merge.

src/net.c

index b299bf18ebfc2255415c612db8bed0e57a2d4bc7..aae73969001577a9f4110adcc528db47b90405d9 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -244,6 +244,7 @@ static void sigterm_handler(int signal, short events, void *data) {
 
 static void sighup_handler(int signal, short events, void *data) {
        logger(LOG_NOTICE, "Got %s signal", strsignal(signal));
+       reopenlogger();
        reload_configuration();
 }