summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-22 00:12:55 +0100
committerMichael Adam <obnox@samba.org>2009-12-22 00:15:00 +0100
commit479562ad2b039c511d81ba9f8750d4fe546503a0 (patch)
treec1ff9a9a522bbcb6ee992cb0814b27a8e29ee26a
parent91492773b1c3b0e35dafa0d330810652d331c837 (diff)
downloadtinyproxy-479562ad2b039c511d81ba9f8750d4fe546503a0.tar.gz
tinyproxy-479562ad2b039c511d81ba9f8750d4fe546503a0.zip
reload config upon SIGHUP
Michael
-rw-r--r--src/child.c4
1 files changed, 4 insertions, 0 deletions
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 */