Also fflush in printer::print_str() if configured to do so

This commit is contained in:
Dickinson Reed
2017-12-12 16:58:50 -05:00
parent 31a0784160
commit 07992b90cb
+5
View File
@@ -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);