From cfdce461c3f12183da4094296139197ad2a6cb45 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Mon, 11 Apr 2016 16:43:12 +0900 Subject: Do not attempt to trap SIGKILL part 2 it doesn't work on any OS. --- tests/tcp_proxy/main.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/tcp_proxy/main.c') diff --git a/tests/tcp_proxy/main.c b/tests/tcp_proxy/main.c index 1cc58889..1a275395 100644 --- a/tests/tcp_proxy/main.c +++ b/tests/tcp_proxy/main.c @@ -397,13 +397,6 @@ g_signal_user_interrupt(void (*func)(int)) signal(SIGINT, func); } -/*****************************************************************************/ -static void APP_CC -g_signal_kill(void (*func)(int)) -{ - signal(SIGKILL, func); -} - /*****************************************************************************/ static void APP_CC g_signal_terminate(void (*func)(int)) @@ -685,7 +678,6 @@ main(int argc, char **argv) g_init("tcp_proxy"); g_signal_user_interrupt(proxy_shutdown); /* SIGINT */ - g_signal_kill(proxy_shutdown); /* SIGKILL */ g_signal_usr1(clear_counters); /* SIGUSR1 */ g_signal_terminate(proxy_shutdown); /* SIGTERM */ -- cgit v1.2.3 From f7858e964db7406aa602492244bb992b11ee23ac Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Mon, 11 Apr 2016 16:46:49 +0900 Subject: Remove trailing whitespace, no logic change --- tests/tcp_proxy/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tcp_proxy/main.c') diff --git a/tests/tcp_proxy/main.c b/tests/tcp_proxy/main.c index 1a275395..26c974cd 100644 --- a/tests/tcp_proxy/main.c +++ b/tests/tcp_proxy/main.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include -- cgit v1.2.3