aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-20 14:12:18 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-20 14:12:18 -0500
commit17fd575fe40b3241938a352147d3141ed2ad11d3 (patch)
treec354dbbe23e7ba12206264322656f6c3979174d8 /src
parentMerge pull request #3757 (diff)
parentdaemon: fix readline interfering with std::cerr usage (diff)
downloadmonero-17fd575fe40b3241938a352147d3141ed2ad11d3.tar.xz
Merge pull request #3888
1aae39d daemon: fix readline interfering with std::cerr usage (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/daemon/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 49494e889..fd70c367c 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -262,6 +262,9 @@ int main(int argc, char const * argv[])
}
else
{
+#ifdef HAVE_READLINE
+ rdln::suspend_readline pause_readline;
+#endif
std::cerr << "Unknown command: " << command.front() << std::endl;
return 1;
}