aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-20 20:45:14 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-20 20:45:14 +0200
commit4ad6b662837a5901c9f2deece43356f064d13f0f (patch)
treebcac57c80d0b11de13ff59183af90fb78cb181c9 /contrib/epee
parentMerge pull request #4667 (diff)
parentconsole_handler: add a global log when exiting via EOF (diff)
downloadmonero-4ad6b662837a5901c9f2deece43356f064d13f0f.tar.xz
Merge pull request #4670
fea60d6a 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.h5
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)