summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xmrstak/misc/console.cpp5
1 files changed, 5 insertions, 0 deletions
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<std::mutex> lck(print_mutex);
fputs(str, stdout);
+ if (b_flush_stdout)
+ {
+ fflush(stdout);
+ }
+
if(logfile != nullptr)
{
fputs(str, logfile);
OpenPOWER on IntegriCloud