diff options
| author | Adam Weiss <[email protected]> | 2014-09-10 12:26:59 -0400 |
|---|---|---|
| committer | Adam Weiss <[email protected]> | 2014-09-10 12:48:13 -0400 |
| commit | e982b574a5e8878fb50f8f75c179474f2b1661dd (patch) | |
| tree | 02ca4e9f00b2f6af46a771766fca0b915e90933f /src/init.cpp | |
| parent | Fix crashing bug caused by orphan(s) with duplicate prevout.hash (diff) | |
| download | discoin-e982b574a5e8878fb50f8f75c179474f2b1661dd.tar.xz discoin-e982b574a5e8878fb50f8f75c179474f2b1661dd.zip | |
Use explicit fflush() instead of setvbuf()
Flushing after every line when printing to console is desirable when
running with systemd but setvbuf() has slightly different semantics
on Windows that causes warnings. Just do an explicit fflush() after
each line print to console instead.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 31f64878f..2e18f485b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -630,7 +630,6 @@ bool AppInit2(boost::thread_group& threadGroup) fPrintToConsole = GetBoolArg("-printtoconsole", false); fLogTimestamps = GetBoolArg("-logtimestamps", true); fLogIPs = GetBoolArg("-logips", false); - setvbuf(stdout, NULL, _IOLBF, 0); #ifdef ENABLE_WALLET bool fDisableWallet = GetBoolArg("-disablewallet", false); #endif |