From 479562ad2b039c511d81ba9f8750d4fe546503a0 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 22 Dec 2009 00:12:55 +0100 Subject: reload config upon SIGHUP Michael --- src/child.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/child.c b/src/child.c index d640bed..6030fa0 100644 --- a/src/child.c +++ b/src/child.c @@ -167,6 +167,8 @@ short int child_configure (child_config_t type, unsigned int val) static void child_sighup_handler (int sig) { if (sig == SIGHUP) { + reload_config (); + #ifdef FILTER_ENABLE filter_reload (); #endif /* FILTER_ENABLE */ @@ -429,6 +431,8 @@ void child_main_loop (void) if (received_sighup) { truncate_log_file (); + reload_config (); + #ifdef FILTER_ENABLE filter_reload (); #endif /* FILTER_ENABLE */ -- cgit v1.2.3