summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
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);