summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-23 19:32:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-23 19:32:59 +0000
commitab7a861a91fd204603775b8d06b1d99c1593229f (patch)
treefded459321ef6f8841d1f55a6bd8d5c962c6e8ed /src
parentdeb85740798d3438563628736c0e83edb6966b6e (diff)
Fix segfault on 'cant open logfile' on startup, on trying to call Exit. instead just call plain exit() as we're screwed and cant log any unload messages.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7802 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index b5b2a095b..7fba47699 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -463,7 +463,7 @@ void InspIRCd::OpenLog(char** argv, int argc)
if (!Config->log_file)
{
printf("ERROR: Could not write to logfile %s: %s\n\n", Config->logpath.c_str(), strerror(errno));
- Exit(EXIT_STATUS_LOG);
+ exit(EXIT_STATUS_LOG);
}
this->Logger = new FileLogger(this, Config->log_file);