Merge pull request #521 from dickinsonreed/master

Also fflush in printer::print_str() if configured to do so
This commit is contained in:
psychocrypt
2017-12-13 21:18:38 +01:00
committed by GitHub
+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);