diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-23 19:32:59 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-23 19:32:59 +0000 |
commit | ab7a861a91fd204603775b8d06b1d99c1593229f (patch) | |
tree | fded459321ef6f8841d1f55a6bd8d5c962c6e8ed | |
parent | deb85740798d3438563628736c0e83edb6966b6e (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
-rw-r--r-- | src/helperfuncs.cpp | 2 |
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); |