summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-07 23:38:25 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-07 23:38:25 +0000
commit3324e62bae6f04e4f16f113b2e3352fae242f405 (patch)
treecfdd8d39e374619cad772aff317e2998fa078548 /src/main.c
parent728fe3e1d42bf8cac353787480701b0a62559272 (diff)
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1428 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 7e33c3de8..60a9ce8bf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -461,8 +461,8 @@ void sighandler(int signum)
default:
snprintf(buf, sizeof(buf), "waiting=%d", waiting);
}
- ircdproto->SendGlobops(NULL, "PANIC! %s (%s)", buf, strsignal(signum));
- alog("PANIC! %s (%s)", buf, strsignal(signum));
+ ircdproto->SendGlobops(NULL, "PANIC! %s (caught signal %d)", buf, signum);
+ alog("PANIC! %s (caught signal %d)", buf, signum);
modules_unload_all(false, true);
}
}
@@ -474,13 +474,7 @@ void sighandler(int signum)
!(quitmsg = (const char *)calloc(BUFSIZE, 1))) {
quitmsg = "Out of memory!";
} else {
-
- // Yes, this isn't the "nicest" of ideas, but we know it's safe, if bad practice. -- w00t
-#if HAVE_STRSIGNAL
- snprintf((char *)quitmsg, BUFSIZE, "Services terminating: %s", strsignal(signum));
-#else
snprintf((char *)quitmsg, BUFSIZE, "Services terminating on signal %d", signum);
-#endif
}
if (signum == SIGSEGV) {