]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Partial fix for bug #441
[user/henk/code/inspircd.git] / src / server.cpp
index 2722c6831966840b145ad9f0c59bce05e88c2499..f163bc7335e5ae573b6f9d68bc9c2fe338823d4a 100644 (file)
@@ -11,6 +11,8 @@
  * ---------------------------------------------------
  */
 
+/* $Core: libIRCDserver */
+
 #include <signal.h>
 #include "exitcodes.h"
 #include "inspircd.h"
@@ -31,6 +33,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 +41,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()