From a2f92b57914ffa7c7de89694ce672e49a6f807ec Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 10 Sep 2021 13:43:50 +0300 Subject: [PATCH] Update changelog, use std::exit instead of exit --- Changelog.md | 2 ++ src/Common.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;