summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 17:08:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 17:08:02 +0000
commit6cc7cd76fbc809d6c0df55c061684581e31b6ebc (patch)
tree24cdf1a0c83998d30d15cde8ffcb3606349440a5 /src/inspircd.cpp
parent6c9a69cbad71e15788cc4d5757b5ee7d311bff70 (diff)
Close logfile on rehash and reopen (it was only doing this on sighup for some reason)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6079 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index ceeaf6650..6b9359751 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -136,12 +136,17 @@ void InspIRCd::Start()
void InspIRCd::Rehash(int status)
{
SI->WriteOpers("Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(CONFIG_FILE));
- fclose(SI->Config->log_file);
+ SI->CloseLog();
SI->OpenLog(NULL,0);
SI->Config->Read(false,NULL);
FOREACH_MOD_I(SI,I_OnRehash,OnRehash(""));
}
+void InspIRCd::CloseLog()
+{
+ this->Logger->Close();
+}
+
void InspIRCd::SetSignals()
{
signal(SIGALRM, SIG_IGN);