diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 31 | ||||
-rw-r--r-- | src/server.cpp | 2 |
2 files changed, 12 insertions, 21 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4e4b3f5e2..97d95f9bd 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -77,26 +77,17 @@ unsigned const char *national_case_insensitive_map = rfc_case_insensitive_map; */ const char* ExitCodes[] = { - "No error", /* 0 */ - "DIE command", /* 1 */ - "execv() failed", /* 2 */ - "Internal error", /* 3 */ - "Config file error", /* 4 */ - "Logfile error", /* 5 */ - "POSIX fork failed", /* 6 */ - "Bad commandline parameters", /* 7 */ - "No ports could be bound", /* 8 */ - "Can't write PID file", /* 9 */ - "SocketEngine could not initialize", /* 10 */ - "Refusing to start up as root", /* 11 */ - "Found a <die> tag!", /* 12 */ - "Couldn't load module on startup", /* 13 */ - "Could not create windows forked process", /* 14 */ - "Received SIGTERM", /* 15 */ - "Bad command handler loaded", /* 16 */ - "RegisterServiceCtrlHandler failed", /* 17 */ - "UpdateSCMStatus failed", /* 18 */ - "CreateEvent failed" /* 19 */ + "No error", // 0 + "DIE command", // 1 + "Config file error", // 2 + "Logfile error", // 3 + "POSIX fork failed", // 4 + "Bad commandline parameters", // 5 + "Can't write PID file", // 6 + "SocketEngine could not initialize", // 7 + "Refusing to start up as root", // 8 + "Couldn't load module on startup", // 9 + "Received SIGTERM" // 10 }; template<typename T> static void DeleteZero(T*&n) diff --git a/src/server.cpp b/src/server.cpp index 55c230f96..580ee5310 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -36,7 +36,7 @@ void InspIRCd::SignalHandler(int signal) else if (signal == SIGTERM) #endif { - Exit(signal); + Exit(EXIT_STATUS_SIGTERM); } } |