fix multiple definitions
This commit is contained in:
parent
1a4a16825f
commit
051a3a4071
4
bbs.c
4
bbs.c
@ -26,7 +26,7 @@ int timeoutpaused;
|
|||||||
|
|
||||||
char *ipaddress;
|
char *ipaddress;
|
||||||
|
|
||||||
void sigterm_handler(int s)
|
void sigterm_handler2(int s)
|
||||||
{
|
{
|
||||||
if (mynode != 0) {
|
if (mynode != 0) {
|
||||||
disconnect("Terminated.");
|
disconnect("Terminated.");
|
||||||
@ -511,7 +511,7 @@ void runbbs_real(int socket, char *ip, int ssh) {
|
|||||||
sshBBS = 1;
|
sshBBS = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
st.sa_handler = sigterm_handler;
|
st.sa_handler = sigterm_handler2;
|
||||||
sigemptyset(&st.sa_mask);
|
sigemptyset(&st.sa_mask);
|
||||||
if (sigaction(SIGTERM, &st, NULL) == -1) {
|
if (sigaction(SIGTERM, &st, NULL) == -1) {
|
||||||
dolog("Failed to setup sigterm handler.");
|
dolog("Failed to setup sigterm handler.");
|
||||||
|
Reference in New Issue
Block a user