Remove deprecated -nolimit and -notraceback options

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5338 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2006-09-26 17:04:39 +00:00
parent 5334998f27
commit cae372d1eb
2 changed files with 3 additions and 14 deletions

View File

@ -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

View File

@ -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())