From 07992b90cb4db55b2143b74ea7517c5aba4ade75 Mon Sep 17 00:00:00 2001 From: Dickinson Reed Date: Tue, 12 Dec 2017 16:58:50 -0500 Subject: Also fflush in printer::print_str() if configured to do so --- xmrstak/misc/console.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmrstak/misc/console.cpp') diff --git a/xmrstak/misc/console.cpp b/xmrstak/misc/console.cpp index 980760e..de5eed3 100644 --- a/xmrstak/misc/console.cpp +++ b/xmrstak/misc/console.cpp @@ -211,6 +211,11 @@ void printer::print_str(const char* str) std::unique_lock lck(print_mutex); fputs(str, stdout); + if (b_flush_stdout) + { + fflush(stdout); + } + if(logfile != nullptr) { fputs(str, logfile); -- cgit v1.1