diff --git a/src/init.cpp b/src/init.cpp index 0daa11dbd..2d1578e98 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -30,6 +30,7 @@ #endif #include +#include #ifndef WIN32 #include @@ -540,6 +541,7 @@ bool AppInit2(boost::thread_group& threadGroup) fServer = GetBoolArg("-server", false); fPrintToConsole = GetBoolArg("-printtoconsole", false); fLogTimestamps = GetBoolArg("-logtimestamps", true); + setvbuf(stdout, NULL, _IOLBF, 0); #ifdef ENABLE_WALLET bool fDisableWallet = GetBoolArg("-disablewallet", false); #endif