From c314128858c84bcee453d5b291eb8536e06f9aca Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 14 Dec 2010 18:08:52 +0000 Subject: 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 --- src/sig_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sig_handler.c') 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); -- cgit v1.2.3