From: Stephen Hemminger Date: Fri, 2 May 2008 16:25:02 +0000 (-0700) Subject: [vtysh] Force line buffered mode. X-Git-Tag: frr-2.0-rc1~2326 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0fbd62a17c53f1e2695c0f96ffb437cd079abacb;p=matthieu%2Ffrr.git [vtysh] Force line buffered mode. Vtysh is used in pipelines and it helps if the output starts right away instead of waiting for a whole buffer to fill. --- diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 51f376c773..d655e07317 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -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 ();