Use explicit fflush() instead of setvbuf() #4892

pull ajweiss wants to merge 1 commits into bitcoin:master from ajweiss:ajw_1409_stdout changing 2 files +1 −1
  1. ajweiss commented at 4:35 PM on September 10, 2014: contributor

    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.

    Fixes #4884

  2. jgarzik commented at 4:38 PM on September 10, 2014: contributor

    ut ACK once nit fixed

  3. 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.
    e982b574a5
  4. ajweiss force-pushed on Sep 10, 2014
  5. ajweiss commented at 4:53 PM on September 10, 2014: contributor

    Good point. Didn't notice the other stdio stuff in there. It's back in there now.

  6. BitcoinPullTester commented at 5:06 PM on September 10, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4892_e982b574a5e8878fb50f8f75c179474f2b1661dd/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  7. laanwj merged this on Sep 11, 2014
  8. laanwj closed this on Sep 11, 2014

  9. laanwj referenced this in commit 8040e938c5 on Sep 11, 2014
  10. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 09:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me