]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[vtysh] Force line buffered mode.
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 2 May 2008 16:25:02 +0000 (09:25 -0700)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:24 +0000 (20:18 +0100)
Vtysh is used in pipelines and it helps if the output starts right
away instead of waiting for a whole buffer to fill.

vtysh/vtysh_main.c

index 51f376c773fe72e9df981e35e877975df4faf2b0..d655e07317b8f61fad538677edd777c5d7a9c646 100644 (file)
@@ -259,6 +259,7 @@ main (int argc, char **argv, char **env)
 
   /* Initialize user input buffer. */
   line_read = NULL;
+  setlinebuf(stdout);
 
   /* Signal and others. */
   vtysh_signal_init ();