diff options
author | Michael Adam <obnox@samba.org> | 2009-12-23 00:20:38 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-23 00:31:55 +0100 |
commit | 8346a20aa051ac5c626fa139fd56fa9c2f50bb04 (patch) | |
tree | 0f539e1bd2dd8927fb0d616302902c4f2e80c5c9 | |
parent | fb2e65f40bc549f42a61bbcbe717438bad653fc7 (diff) | |
download | tinyproxy-8346a20aa051ac5c626fa139fd56fa9c2f50bb04.tar.gz tinyproxy-8346a20aa051ac5c626fa139fd56fa9c2f50bb04.zip |
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
-rw-r--r-- | src/child.c | 2 |
1 files changed, 0 insertions, 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 |