Whoops, crash on sighup due to passing null argv and argc (similar to rehash, throwback to old code)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6098 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-12-24 13:32:06 +00:00
parent 191adfdc7f
commit 6d23826207

View File

@ -139,7 +139,7 @@ void InspIRCd::Rehash(int status)
{
SI->WriteOpers("Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(CONFIG_FILE));
SI->CloseLog();
SI->OpenLog(NULL,0);
SI->OpenLog(this->Config->argv, this->Config->argc);
SI->RehashUsersAndChans();
FOREACH_MOD_I(SI, I_OnGarbageCollect, OnGarbageCollect());
SI->Config->Read(false,NULL);