diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-30 12:22:34 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-30 12:22:34 +0100 |
commit | f3255d1e9f062e7783b05ab5b32ca70085170d79 (patch) | |
tree | 2545e94650e88237baf6c0e04758f00e87dc335a /lib/vty_io_file.c | |
parent | 9c99076cf33bfa874db34151e28822f0e392ab3a (diff) | |
download | quagga-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_file.c')
-rw-r--r-- | lib/vty_io_file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vty_io_file.c b/lib/vty_io_file.c index 01a92a2d..4b1a8cfa 100644 --- a/lib/vty_io_file.c +++ b/lib/vty_io_file.c @@ -75,6 +75,8 @@ vty_config_read_open(int fd, const char* name, bool full_lex) uty_vin_push( vio, vf, VIN_CONFIG, NULL, NULL, 64 * 1024) ; uty_vout_push(vio, vf, VOUT_STDERR, NULL, NULL, 4 * 1024) ; + uty_vout_sync_depth(vio) ; /* vin & vout are at same level */ + /* Deal with the possibility that while reading the configuration file, may * use a pipe, and therefore may block waiting to collect a child process. * |