diff options
author | Michael Adam <obnox@samba.org> | 2009-12-23 00:22:37 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-23 00:31:55 +0100 |
commit | 0466526b1d85ffc2488f06a6e5a3105178be9563 (patch) | |
tree | e0f15e54ecf9ca92019469889906a9b101e1975b /src/child.c | |
parent | 8346a20aa051ac5c626fa139fd56fa9c2f50bb04 (diff) |
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
Diffstat (limited to 'src/child.c')
-rw-r--r-- | src/child.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 |