This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cplus-dem.c tiny patch


If a process sends an address followed by a newline to c++filt and
then waits for a symbol string terminated by a newline it may wait
forever; c++filt doesn't flush its output buffer before going back to
waiting for input.

Andrew.


2000-07-07  Andrew Haley  <aph@cygnus.com>

	* cplus-dem.c (main): fflush() after emitting last char before
	waiting for input.

Index: cplus-dem.c
===================================================================
RCS file: /cvs/src/src/libiberty/cplus-dem.c,v
retrieving revision 1.4
diff -u -p -r1.4 cplus-dem.c
--- cplus-dem.c 2000/06/15 20:56:25     1.4
+++ cplus-dem.c 2000/07/07 11:13:35
@@ -4772,6 +4772,7 @@ main (argc, argv)
          if (c == EOF)
            break;
          putchar (c);
+         fflush (stdout);
        }
     }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]