From d3cda5ad393098235637d8a5f8fa52cac96358df Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 20 Oct 2018 09:12:55 +0000 Subject: 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 --- contrib/epee/include/console_handler.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib') 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) -- cgit v1.2.3