From 1aae39dff27f6e7e48ae0a2d8ef2fd612e127824 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 31 May 2018 12:13:03 +0100 Subject: daemon: fix readline interfering with std::cerr usage Once readline is initialized, std::cerr's operator<< will output a 0xff byte for unknown reasons. --- src/daemon/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3