summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-02 09:25:02 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-02 09:25:02 -0700
commit4ac9235258754e07aa7ea596accba0ba38a425ee (patch)
treeb82f0ff8ecb43ea4e121542d58824950698353c6
parent1490b0cea99059a23f917a154db3f39e062ce92e (diff)
downloadquagga-4ac9235258754e07aa7ea596accba0ba38a425ee.tar.bz2
quagga-4ac9235258754e07aa7ea596accba0ba38a425ee.tar.xz
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.
-rw-r--r--vtysh/vtysh_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 51f376c7..d655e073 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 ();