summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-05-30 21:24:08 +0100
committerPeter Powell <petpow@saberuk.com>2019-05-30 21:24:08 +0100
commitf7a5b4fa74192338012b5174748e2ce4d796d46d (patch)
treef344dc026833a9ea93e236429efd06e635b3d784 /src/modules
parent08d2ff86b0c7ed91549d832cf3e572c8623dc8e8 (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/modules')
-rw-r--r--src/modules/extra/m_sslrehashsignal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_sslrehashsignal.cpp b/src/modules/extra/m_sslrehashsignal.cpp
index fea32326a..e8be17e23 100644
--- a/src/modules/extra/m_sslrehashsignal.cpp
+++ b/src/modules/extra/m_sslrehashsignal.cpp
@@ -33,7 +33,7 @@ class ModuleSSLRehashSignal : public Module
public:
~ModuleSSLRehashSignal()
{
- signal(SIGUSR1, SIG_DFL);
+ signal(SIGUSR1, SIG_IGN);
}
void init()