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
This commit is contained in:
Michael Adam committed 2009-12-23 00:31:55 +01:00
1 parent fb2e65f40b
commit 8346a20aa0
1 file changed
-2
-2
View File
@@ -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