diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-20 09:12:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-20 09:13:55 +0000 |
commit | d3cda5ad393098235637d8a5f8fa52cac96358df (patch) | |
tree | fad9ef311e4965fc109a57de4b13be0f57233662 /contrib/epee/include | |
parent | Merge pull request #4610 (diff) | |
download | monero-d3cda5ad393098235637d8a5f8fa52cac96358df.tar.xz |
console_handler: add a global log when exiting via EOF
It's a common confusion point for users which run monerod
without stdin and with --detach
Diffstat (limited to 'contrib/epee/include')
-rw-r--r-- | contrib/epee/include/console_handler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h index 2ccf5b095..6e7efd1d7 100644 --- a/contrib/epee/include/console_handler.h +++ b/contrib/epee/include/console_handler.h @@ -352,8 +352,11 @@ eof: std::string command; bool get_line_ret = m_stdin_reader.get_line(command); - if (!m_running || m_stdin_reader.eos()) + if (!m_running) + break; + if (m_stdin_reader.eos()) { + MGINFO("EOF on stdin, exiting"); break; } if (!get_line_ret) |