diff options
| author | 2022-07-19 16:47:02 +0100 | |
|---|---|---|
| committer | 2022-07-19 16:47:02 +0100 | |
| commit | 42b1429b37f1365687479764b4524cac913787b7 (patch) | |
| tree | 2d87dd41a8b1d2eb09258a62cdc0d40b1993bfa1 /src/server.cpp | |
| parent | Allow forcing binary exit codes at compile time. (diff) | |
Also use binary exit codes in places that terminate abruptly.
This is a partial reversion of commit 57330e973b3eb1f2a84803c84daf9d6b420859fd.
Diffstat (limited to 'src/server.cpp')
| -rw-r--r-- | src/server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index ccc572553..1787e4f26 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -56,7 +56,11 @@ void InspIRCd::Exit(int status) this->Cleanup(); ServerInstance = NULL; delete this; + QuickExit(status); +} +void InspIRCd::QuickExit(int status) +{ #ifdef INSPIRCD_BINARY_EXIT // Some init systems handle non-binary exit statuses weirdly. exit(status ? EXIT_FAILURE : EXIT_SUCCESS); |
