summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/inspircd.h3
-rw-r--r--src/inspircd.cpp14
2 files changed, 3 insertions, 14 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index dfc36a720..8c897305f 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -245,9 +245,8 @@ class InspIRCd : public classbase
void Start();
/** Set up the signal handlers
- * @param SEGVHandler create a handler for segfaults (deprecated)
*/
- void SetSignals(bool SEGVHandler);
+ void SetSignals();
/** Daemonize the ircd and close standard input/output streams
* @return True if the program daemonized succesfully
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index dc139fa0d..25acba68f 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -99,7 +99,7 @@ void InspIRCd::Rehash(int status)
FOREACH_MOD_I(SI,I_OnRehash,OnRehash(""));
}
-void InspIRCd::SetSignals(bool SEGVHandler)
+void InspIRCd::SetSignals()
{
signal(SIGALRM, SIG_IGN);
signal(SIGHUP, InspIRCd::Rehash);
@@ -170,8 +170,6 @@ std::string InspIRCd::GetRevision()
InspIRCd::InspIRCd(int argc, char** argv)
: ModCount(-1), duration_m(60), duration_h(60*60), duration_d(60*60*24), duration_w(60*60*24*7), duration_y(60*60*24*365)
{
- bool SEGVHandler = false;
-
modules.resize(255);
factory.resize(255);
@@ -208,14 +206,6 @@ InspIRCd::InspIRCd(int argc, char** argv)
{
sleep(6);
}
- else if (!strcmp(argv[i],"-nolimit"))
- {
- printf("WARNING: The `-nolimit' option is deprecated, and now on by default. This behaviour may change in the future.\n");
- }
- else if (!strcmp(argv[i],"-notraceback"))
- {
- SEGVHandler = false;
- }
else if (!strcmp(argv[i],"-logfile"))
{
if (argc > i+1)
@@ -260,7 +250,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
memset(&Config->implement_lists,0,sizeof(Config->implement_lists));
printf("\n");
- this->SetSignals(SEGVHandler);
+ this->SetSignals();
if (!Config->nofork)
{
if (!this->DaemonSeed())