diff --git a/Changelog.md b/Changelog.md index 8fbb87e..2390760 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,8 @@ - ADDED more meaningful shutdown messages - ADDED even better backend connection error reporting - ADDED `SendErrors` config in `ServerConfig.toml` to opt-out of error reporting +- ADDED hard-shutdown if Ctrl+C pressed 3 times +- FIXED issue with shells like bash being unusable after server exit # v2.3.1 diff --git a/src/Common.cpp b/src/Common.cpp index 478cc8f..e4689bc 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -30,7 +30,7 @@ void Application::GracefullyShutdown() { // hard shutdown at 2 additional tries if (ShutdownAttempts == 2) { info("hard shutdown forced by multiple shutdown requests"); - exit(0); + std::exit(0); } info("already shutting down!"); return;