From 0466526b1d85ffc2488f06a6e5a3105178be9563 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Dec 2009 00:22:37 +0100 Subject: Add warning comments to SIGHUP handlers, that we ignore the retrun code of reload_config(). This can actually fail, and we probably need some way to handle this. Like an emergency error exit or so... Michael --- src/child.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/child.c b/src/child.c index cc635e8..34e20e0 100644 --- a/src/child.c +++ b/src/child.c @@ -167,6 +167,10 @@ short int child_configure (child_config_t type, unsigned int val) static void child_sighup_handler (int sig) { if (sig == SIGHUP) { + /* + * Ignore the return value of reload_config for now. + * This should actually be handled somehow... + */ reload_config (); #ifdef FILTER_ENABLE @@ -429,6 +433,10 @@ void child_main_loop (void) /* Handle log rotation if it was requested */ if (received_sighup) { + /* + * Ignore the return value of reload_config for now. + * This should actually be handled somehow... + */ reload_config (); #ifdef FILTER_ENABLE -- cgit v1.2.3