From 4b2db5392bd282312471cef3143b8d1c6f4ae4fb Mon Sep 17 00:00:00 2001 From: Lukas Martini Date: Sat, 9 Jun 2012 07:42:21 +0200 Subject: [PATCH] Renaming shutdown signal handler to exit_signal (libc conflict) --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 1449e60..2111191 100644 --- a/main.c +++ b/main.c @@ -48,7 +48,7 @@ void usage(char* argv[]) exit(EXIT_FAILURE); } -void shutdown() +void exit_signal() { syslog(LOG_INFO, "Catched one of SIG{TERM,INT, HUP}, killing workers!\n"); for(int i = 0; i <= num_workers; i++) @@ -163,8 +163,8 @@ int main(int argc, char* argv[], char* envp[]) * workers died (not cool). */ struct sigaction exit_action; - exit_action.sa_handler = &shutdown; - exit_action.sa_sigaction = &shutdown; + exit_action.sa_handler = &exit_signal; + exit_action.sa_sigaction = &exit_signal; struct sigaction worker_died_action; worker_died_action.sa_handler = &worker_died;