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
This commit is contained in:
moneromooo-monero 2018-10-20 09:12:55 +00:00 committed by wowario
parent 89c74b5710
commit 18683acc84
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 4 additions and 1 deletions

View File

@ -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)