summaryrefslogtreecommitdiff
path: root/src/sig_handler.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-12-14 18:08:52 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-12-14 18:08:52 +0000
commitc314128858c84bcee453d5b291eb8536e06f9aca (patch)
tree492b71865607b623c90ea4b96ae04b3f1d7c8301 /src/sig_handler.c
parentfixed problematic usage of strndup (diff)
listener info output on SIG USR1
clients info output on SIG USR2 git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@59 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/sig_handler.c')
-rw-r--r--src/sig_handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sig_handler.c b/src/sig_handler.c
index 7c3d45b..cc385cb 100644
--- a/src/sig_handler.c
+++ b/src/sig_handler.c
@@ -120,8 +120,8 @@ int signal_handle()
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"); return_value = 2; break;
- case SIGUSR1: log_printf(NOTICE, "SIG-Usr1 caught"); break;
- case SIGUSR2: log_printf(NOTICE, "SIG-Usr2 caught"); break;
+ case SIGUSR1: log_printf(NOTICE, "SIG-Usr1 caught"); return_value = 3; break;
+ case SIGUSR2: log_printf(NOTICE, "SIG-Usr2 caught"); return_value = 4; break;
default: log_printf(WARNING, "unknown signal %d caught, ignoring", sig); break;
}
sigdelset(&set, sig);