diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2013-10-09 19:13:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2013-10-09 19:13:19 +0000 |
commit | c2347d6919b2b1594eda105eebab6fd9ffd9a1f1 (patch) | |
tree | 4383faa9fa2c75ec69cd58051a1f8dcee6286084 /gnu | |
parent | f8456f9898fe923beea684990e425d5eb4e8cd87 (diff) |
Merge binutils 2.15 einfo() buffering change to binutils-2.17.
OK deraadt@ miod@
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/ld/ldmisc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/ldmisc.c b/gnu/usr.bin/binutils-2.17/ld/ldmisc.c index 8af043aa2b2..12c0d0f4edc 100644 --- a/gnu/usr.bin/binutils-2.17/ld/ldmisc.c +++ b/gnu/usr.bin/binutils-2.17/ld/ldmisc.c @@ -495,10 +495,14 @@ void einfo (const char *fmt, ...) { va_list arg; + char buf[BUFSIZ]; + setvbuf(stderr, buf, _IOFBF, sizeof(buf)); va_start (arg, fmt); vfinfo (stderr, fmt, arg, TRUE); va_end (arg); + fflush(stderr); + setvbuf(stderr, NULL, _IONBF, 0); } void |