From 71532e29af6d0be878596e47dbd66a6ce573893d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Oct 2007 20:53:44 +0000 Subject: Fix crashing on startup if there was an error condition in win32 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8193 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/server.cpp') diff --git a/src/server.cpp b/src/server.cpp index 2722c6831..4568c43fd 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -31,6 +31,7 @@ void InspIRCd::SignalHandler(int signal) void InspIRCd::Exit(int status) { + printf("exit with status %d\n", status); #ifdef WINDOWS delete WindowsIPC; #endif @@ -38,8 +39,9 @@ void InspIRCd::Exit(int status) { this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")"); this->Cleanup(); - } - exit (status); + } + printf("Exit done.\n"); + exit (status); } void InspIRCd::Rehash() -- cgit v1.3.1-10-gc9f91