From 9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Thu, 31 Mar 2011 00:37:47 +0100 Subject: Small improvements to speed of reading of configuration file. Tidy up signalling of "ready" to command loop, and checking of appropriate state to close written configuration file. --- lib/vty_io_term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/vty_io_term.c') diff --git a/lib/vty_io_term.c b/lib/vty_io_term.c index 416968bf..857e457a 100644 --- a/lib/vty_io_term.c +++ b/lib/vty_io_term.c @@ -515,7 +515,7 @@ uty_term_ready(vio_vf vf) vio_lc_counter_reset(vf->cli->olc) ; /* do one tranche */ done = uty_term_write(vf) ; - signal = done == utw_done ; + signal = ((done == utw_done) || (done == utw_stopped)) ; while (done != utw_error) { @@ -538,7 +538,7 @@ uty_term_ready(vio_vf vf) if (done == done_before) break ; /* quit if no change in response */ - if (done == utw_done) + if ((done == utw_done) || (done == utw_stopped)) signal = true ; } ; -- cgit v1.2.3