From c1d1b111f2323bf62ea6ed9e2a97aae93f5ca330 Mon Sep 17 00:00:00 2001 From: dan <> Date: Thu, 2 Mar 2023 17:08:22 +0100 Subject: [PATCH] Add explanatory comments --- src/simplewallet/simplewallet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 74f36f99b..4e923e0f1 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -10702,6 +10702,8 @@ int main(int argc, char* argv[]) tools::signal_handler::install([&w](int type) { if (tools::password_container::is_prompting.load()) { + // Runs the full exit routine after receiving Ctrl-C + // In current state we're incapable of gracefully exiting from here without major redesign, hence the blunt approach w.stop(); w.deinit(); _exit(0);