diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-02 09:25:02 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-02 09:25:02 -0700 |
commit | 4ac9235258754e07aa7ea596accba0ba38a425ee (patch) | |
tree | b82f0ff8ecb43ea4e121542d58824950698353c6 | |
parent | 1490b0cea99059a23f917a154db3f39e062ce92e (diff) | |
download | quagga-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.c | 1 |
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 (); |