diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-20 20:39:08 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-20 20:39:08 +0200 |
commit | 2c08fd472dcd394de58ca8a5fc182abcb56c71d1 (patch) | |
tree | 17ff7fe5c3ac12c40aba837ce4259ca5d258adec /contrib/epee | |
parent | Merge pull request #4666 (diff) | |
parent | console_handler: add a global log when exiting via EOF (diff) | |
download | monero-2c08fd472dcd394de58ca8a5fc182abcb56c71d1.tar.xz |
Merge pull request #4669
d3cda5ad console_handler: add a global log when exiting via EOF (moneromooo-monero)
Diffstat (limited to 'contrib/epee')
-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) |