From 8346a20aa051ac5c626fa139fd56fa9c2f50bb04 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Dec 2009 00:20:38 +0100 Subject: Don't truncate the log file in the SIGHUP handler. Logging is re-initialized by reload_config() now. And truncation is wrong anyways: A syslog mechanism will move the current log file and the reopen-action will just create a new empty log file upon SIGHUP. Michael --- src/child.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/child.c b/src/child.c index 6030fa0..cc635e8 100644 --- a/src/child.c +++ b/src/child.c @@ -429,8 +429,6 @@ void child_main_loop (void) /* Handle log rotation if it was requested */ if (received_sighup) { - truncate_log_file (); - reload_config (); #ifdef FILTER_ENABLE -- cgit v1.2.3