From 0bc43230d60765d9cc6d0e9bffef91ae6b956843 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 15 Sep 2007 03:02:01 +0000 Subject: [PATCH] * bfd.c (_bfd_default_error_handler): fflush stdout. --- bfd/ChangeLog | 4 ++++ bfd/bfd.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ba33533e5d..ce4fc41908 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-09-15 Nick Clifton + + * bfd.c (_bfd_default_error_handler): fflush stdout. + 2007-09-14 Alan Modra * opncls.c (find_separate_debug_file): Ensure bfd_set_error has diff --git a/bfd/bfd.c b/bfd/bfd.c index 48cd6b6078..a2302f8d0f 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -476,6 +476,9 @@ _bfd_default_error_handler (const char *fmt, ...) size_t avail = 1000; char buf[1000]; + /* PR 4992: Don't interrupt output being sent to stdout. */ + fflush (stdout); + if (_bfd_error_program_name != NULL) fprintf (stderr, "%s: ", _bfd_error_program_name); else