summaryrefslogtreecommitdiff
path: root/src/child.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-23 00:22:37 +0100
committerMichael Adam <obnox@samba.org>2009-12-23 00:31:55 +0100
commit0466526b1d85ffc2488f06a6e5a3105178be9563 (patch)
treee0f15e54ecf9ca92019469889906a9b101e1975b /src/child.c
parent8346a20aa051ac5c626fa139fd56fa9c2f50bb04 (diff)
downloadtinyproxy-0466526b1d85ffc2488f06a6e5a3105178be9563.tar.gz
tinyproxy-0466526b1d85ffc2488f06a6e5a3105178be9563.zip
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 '')
-rw-r--r--src/child.c8
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