aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.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/daemon.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 'src/daemon/daemon.cpp')
-rw-r--r--src/daemon/daemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp
index 7931ba03f..2bd592611 100644
--- a/src/daemon/daemon.cpp
+++ b/src/daemon/daemon.cpp
@@ -126,7 +126,7 @@ bool t_daemon::run(bool interactive)
if (interactive)
{
rpc_commands = new daemonize::t_command_server(0, 0, false, mp_internals->rpc.get_server());
- rpc_commands->start_handling();
+ rpc_commands->start_handling(std::bind(&daemonize::t_daemon::stop, this));
}
mp_internals->p2p.run(); // blocks until p2p goes down