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 b299bf1..aae7396 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();
 }