summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-09 21:01:05 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-09 21:01:05 +0000
commitd7d01bdc5c667a1fafd95241282b58e03b4caa5b (patch)
treef1482d8734da609923c6d8af6bc8fcb0fc187534 /src/init.c
parentd49b3a25fda5f597491e73640dd1e76babc240eb (diff)
Squashed commit: merge next (1.9.1) back to trunk.
SVN users, NOTE: THIS WILL NOT BUILD, NOR SHOULD YOU RUN IT YET. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1953 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c49
1 files changed, 2 insertions, 47 deletions
diff --git a/src/init.c b/src/init.c
index 52bb26558..9b062d85b 100644
--- a/src/init.c
+++ b/src/init.c
@@ -477,54 +477,9 @@ int init_secondary(int ac, char **av)
/* Set signal handlers. Catch certain signals to let us do things or
* panic as necessary, and ignore all others.
*/
-
-#ifndef _WIN32
-#if defined(NSIG)
- for (i = 1; i <= NSIG - 1; i++) {
-#else
- for (i = 1; i <= 31; i++) {
-#endif
- signal(i, SIG_IGN);
- }
-#else
- /* work around to bug #527 */
- signal(SIGILL, SIG_IGN);
- signal(SIGBREAK, SIG_IGN);
- signal(SIGABRT, SIG_IGN);
-#endif
-
- signal(SIGINT, sighandler);
- signal(SIGTERM, sighandler);
-#ifndef _WIN32
- signal(SIGQUIT, sighandler);
-#endif
- if (!DumpCore) {
- signal(SIGSEGV, sighandler);
-#ifndef _WIN32
- signal(SIGBUS, sighandler);
- signal(SIGTRAP, sighandler);
-#endif
- } else {
- signal(SIGSEGV, SIG_DFL);
-#ifndef _WIN32
- signal(SIGBUS, sighandler);
- signal(SIGTRAP, sighandler);
-#endif
- }
-#ifndef _WIN32
- signal(SIGQUIT, sighandler);
signal(SIGHUP, sighandler);
- signal(SIGUSR2, sighandler);
-#endif
-
-#ifdef SIGIOT
- signal(SIGIOT, sighandler);
-#endif
- signal(SIGFPE, sighandler);
-
-#ifndef _WIN32
- signal(SIGUSR1, sighandler); /* This is our "out-of-memory" panic switch */
-#endif
+ signal(SIGTERM, sighandler);
+ signal(SIGINT, sighandler)'
/* Initialize multi-language support */
lang_init();