diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-02 18:25:02 +0200 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-18 21:18:24 +0200 |
commit | 0fbd62a17c53f1e2695c0f96ffb437cd079abacb (patch) | |
tree | 45749827cf0b738d909caf30dddd7953f924d4fb /vtysh | |
parent | [gcc] Add gcc printf format checks (diff) | |
download | frr-0fbd62a17c53f1e2695c0f96ffb437cd079abacb.tar.xz frr-0fbd62a17c53f1e2695c0f96ffb437cd079abacb.zip |
[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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 51f376c77..d655e0731 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 (); |