summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2017-12-13 21:18:38 +0100
committerGitHub <noreply@github.com>2017-12-13 21:18:38 +0100
commit14d7e52984ab85b8012b19131aaa3578053d2f3a (patch)
treef9baece4feabb366020dfff3d95ed3a08ecb3bd6 /xmrstak
parentb6d319e973521dcde1e5d5dbf35add0678ac71da (diff)
parent07992b90cb4db55b2143b74ea7517c5aba4ade75 (diff)
downloadxmr-stak-14d7e52984ab85b8012b19131aaa3578053d2f3a.zip
xmr-stak-14d7e52984ab85b8012b19131aaa3578053d2f3a.tar.gz
Merge pull request #521 from dickinsonreed/master
Also fflush in printer::print_str() if configured to do so
Diffstat (limited to 'xmrstak')
-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