summaryrefslogtreecommitdiffstats
path: root/lib/vty_io_term.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-30 12:22:34 +0100
committerChris Hall <chris.hall@highwayman.com>2011-03-30 12:22:34 +0100
commitf3255d1e9f062e7783b05ab5b32ca70085170d79 (patch)
tree2545e94650e88237baf6c0e04758f00e87dc335a /lib/vty_io_term.c
parent9c99076cf33bfa874db34151e28822f0e392ab3a (diff)
downloadquagga-f3255d1e9f062e7783b05ab5b32ca70085170d79.tar.bz2
quagga-f3255d1e9f062e7783b05ab5b32ca70085170d79.tar.xz
Better mechanism for handling depth_mark in vty->vio.
Previous mechanism required special steps before any new output vty was opened -- which was easy to forget. New mechanism requires extra step when input and output are opened at the same time, which is less common, and more obviously requires the extra step. Fixes problem with "write memory" command.
Diffstat (limited to 'lib/vty_io_term.c')
-rw-r--r--lib/vty_io_term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vty_io_term.c b/lib/vty_io_term.c
index aea04734..416968bf 100644
--- a/lib/vty_io_term.c
+++ b/lib/vty_io_term.c
@@ -164,6 +164,8 @@ uty_term_open(int sock_fd, union sockunion *su)
uty_term_write_timeout,
4096) ; /* obuf is required */
+ uty_vout_sync_depth(vio) ; /* vin & vout are at same level */
+
vf->read_timeout = host.vty_timeout_val ; /* current EXEC timeout */
/* Set up the CLI object & initialise */