Skip to content

Commit

Permalink
console_handler: add a global log when exiting via EOF
Browse files Browse the repository at this point in the history
It's a common confusion point for users which run monerod
without stdin and with --detach
  • Loading branch information
moneromooo-monero committed Oct 20, 2018
1 parent 5c85da5 commit d3cda5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/epee/include/console_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,11 @@ namespace epee

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)
Expand Down

0 comments on commit d3cda5a

Please sign in to comment.