diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-12 08:18:45 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-12 08:24:04 +0200 |
commit | 2e2f6855df83a8b1b3d155e8bf2c1d55e4fee4a6 (patch) | |
tree | 28102a9564fee83f0b5f97a734016e67218a6fdd | |
parent | 2653e00b127f53c7d8a8d9f2e5fa3a13cf765129 (diff) | |
parent | 283e405c063acfca304acbff505badcbbcb814c9 (diff) | |
download | bitcoin-2e2f6855df83a8b1b3d155e8bf2c1d55e4fee4a6.tar.xz |
Merge pull request #4175
283e405 Switch stdout to line buffering (shshshsh)
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 77c32d0b49..2c3bb02758 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -25,6 +25,7 @@ #endif #include <stdint.h> +#include <stdio.h> #ifndef WIN32 #include <signal.h> @@ -530,6 +531,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 |