summaryrefslogtreecommitdiff
path: root/vtysh
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-02 09:25:02 -0700
committerPaul Jakma <paul@quagga.net>2009-06-18 20:18:24 +0100
commit0fbd62a17c53f1e2695c0f96ffb437cd079abacb (patch)
tree45749827cf0b738d909caf30dddd7953f924d4fb /vtysh
parent80c375e72d7c3b9fe41b1ffec461ec5e1b57caa7 (diff)
[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.
Diffstat (limited to 'vtysh')
-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 ();