summaryrefslogtreecommitdiff
path: root/sig_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'sig_handler.c')
-rw-r--r--sig_handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sig_handler.c b/sig_handler.c
index ca2e18f..1a88ddb 100644
--- a/sig_handler.c
+++ b/sig_handler.c
@@ -48,7 +48,7 @@
static int sig_pipe_fds[2];
-
+int reset_flag;
static void sig_handler(int sig)
{
@@ -127,7 +127,7 @@ int signal_handle()
case SIGINT: log_printf(NOTICE, "SIG-Int caught, exitting"); return_value = 1; break;
case SIGQUIT: log_printf(NOTICE, "SIG-Quit caught, exitting"); return_value = 1; break;
case SIGTERM: log_printf(NOTICE, "SIG-Term caught, exitting"); return_value = 1; break;
- case SIGHUP: log_printf(NOTICE, "SIG-Hup caught"); break;
+ case SIGHUP: log_printf(NOTICE, "SIG-Hup caught"); reset_flag = 1; break;
case SIGUSR1: log_printf(NOTICE, "SIG-Usr1 caught"); break;
case SIGUSR2: log_printf(NOTICE, "SIG-Usr2 caught"); break;
default: log_printf(WARNING, "unknown signal %d caught, ignoring", sig); break;