aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-06-03 22:42:30 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-06-03 22:43:35 +0100
commit35b160edea51492c9f98b59f7e175490c7cc2590 (patch)
treed24f6e7a630e454e34a7f91ad06a803495d48757 /src/daemon/command_server.cpp
parentMerge pull request #306 (diff)
downloadmonero-35b160edea51492c9f98b59f7e175490c7cc2590.tar.xz
fix ^D exit for bitmonerod
It uses the async console handler differently than simplewallet, and wasn't running the same exit code, causing it to never actually exit after breaking out of the console entry loop.
Diffstat (limited to '')
-rw-r--r--src/daemon/command_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index 5510ee594..65bceff75 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -196,11 +196,11 @@ bool t_command_server::process_command_vec(const std::vector<std::string>& cmd)
return result;
}
-bool t_command_server::start_handling()
+bool t_command_server::start_handling(std::function<void(void)> exit_handler)
{
if (m_is_rpc) return false;
- m_command_lookup.start_handling("", get_commands_str());
+ m_command_lookup.start_handling("", get_commands_str(), exit_handler);
return true;
}