daemon: fix readline interfering with std::cerr usage

Once readline is initialized, std::cerr's operator<< will
output a 0xff byte for unknown reasons.
This commit is contained in:
moneromooo-monero 2018-05-31 12:13:03 +01:00
parent 81e3926304
commit 740085271b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}