aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2019-05-30 21:24:08 +0100
committerGravatar Peter Powell2019-05-30 21:24:08 +0100
commitf7a5b4fa74192338012b5174748e2ce4d796d46d (patch)
treef344dc026833a9ea93e236429efd06e635b3d784 /src/inspircd.cpp
parentVarious improvements to UNIX socket support. (diff)
Ignore SIGUSR1 and SIGUSR2 by default.
This stops users from accidentally killing their IRC server if they forget to load the sslrehashsignal module.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index b6c252104..c5d958f87 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -121,10 +121,11 @@ void InspIRCd::SetSignals()
{
#ifndef _WIN32
signal(SIGALRM, SIG_IGN);
+ signal(SIGCHLD, SIG_IGN);
signal(SIGHUP, InspIRCd::SetSignal);
signal(SIGPIPE, SIG_IGN);
- signal(SIGCHLD, SIG_IGN);
- /* We want E2BIG not a signal! */
+ signal(SIGUSR1, SIG_IGN);
+ signal(SIGUSR2, SIG_IGN);
signal(SIGXFSZ, SIG_IGN);
#endif
signal(SIGTERM, InspIRCd::SetSignal);