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:
parent
fb2e65f40b
commit
8346a20aa0
@ -429,8 +429,6 @@ void child_main_loop (void)
|
|||||||
|
|
||||||
/* Handle log rotation if it was requested */
|
/* Handle log rotation if it was requested */
|
||||||
if (received_sighup) {
|
if (received_sighup) {
|
||||||
truncate_log_file ();
|
|
||||||
|
|
||||||
reload_config ();
|
reload_config ();
|
||||||
|
|
||||||
#ifdef FILTER_ENABLE
|
#ifdef FILTER_ENABLE
|
||||||
|
Loading…
Reference in New Issue
Block a user