diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-26 17:04:39 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-26 17:04:39 +0000 |
commit | cae372d1ebfa1469f1c654cc831435ab00e6c256 (patch) | |
tree | fc8f87bffd45458d4ef3b804a402d60a990a9fb0 | |
parent | 5334998f271f3d4f6f5d2fc026417ee799d61a8b (diff) |
Remove deprecated -nolimit and -notraceback options
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5338 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/inspircd.h | 3 | ||||
-rw-r--r-- | src/inspircd.cpp | 14 |
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()) |