summaryrefslogtreecommitdiffstats
path: root/lib/vty_io_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty_io_file.c')
-rw-r--r--lib/vty_io_file.c2
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.
*