Fix PR gdb/478
authorStephane Carrez <stcarrez@nerim.fr>
Fri, 25 Oct 2002 19:24:01 +0000 (19:24 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Fri, 25 Oct 2002 19:24:01 +0000 (19:24 +0000)
* tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.

gdb/tui/ChangeLog
gdb/tui/tuiIO.c

index 8fdc4bc..3bcfa17 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-25  Stephane Carrez  <stcarrez@nerim.fr>
+
+       Fix PR gdb/478
+       * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
+
 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
 
        * tui-hooks.c (selected_frame_level_changed_hook): Use the one
index f70df8f..3968a0a 100644 (file)
@@ -600,7 +600,7 @@ tui_initialize_io ()
       fprintf_unfiltered (gdb_stderr, "Cannot redirect readline output");
       exit (1);
     }
-  setlinebuf (tui_rl_outstream);
+  setvbuf (tui_rl_outstream, (char*) NULL, _IOLBF, 0);
 
 #ifdef O_NONBLOCK
   (void) fcntl (tui_readline_pipe[0], F_SETFL, O_NONBLOCK);