From 0fbd62a17c53f1e2695c0f96ffb437cd079abacb Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 2 May 2008 09:25:02 -0700 Subject: [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. --- vtysh/vtysh_main.c | 1 + 1 file changed, 1 insertion(+) 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 (); -- cgit v1.2.1