From ab7a861a91fd204603775b8d06b1d99c1593229f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Aug 2007 19:32:59 +0000 Subject: 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 --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3