From 051a3a40717c67e108e2389fbbd9cc041e8c53e4 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 7 Aug 2016 16:02:04 +1000 Subject: [PATCH] fix multiple definitions --- bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs.c b/bbs.c index c62cd3e..3d6e36a 100644 --- a/bbs.c +++ b/bbs.c @@ -26,7 +26,7 @@ int timeoutpaused; char *ipaddress; -void sigterm_handler(int s) +void sigterm_handler2(int s) { if (mynode != 0) { disconnect("Terminated."); @@ -511,7 +511,7 @@ void runbbs_real(int socket, char *ip, int ssh) { sshBBS = 1; } - st.sa_handler = sigterm_handler; + st.sa_handler = sigterm_handler2; sigemptyset(&st.sa_mask); if (sigaction(SIGTERM, &st, NULL) == -1) { dolog("Failed to setup sigterm handler.");