diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-31 00:37:47 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-31 00:37:47 +0100 |
commit | 9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874 (patch) | |
tree | c4ae426872560a5e070f2054072607f2578e1f7d /lib/vty_io_term.c | |
parent | f3255d1e9f062e7783b05ab5b32ca70085170d79 (diff) | |
download | quagga-9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874.tar.bz2 quagga-9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874.tar.xz |
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.
Diffstat (limited to 'lib/vty_io_term.c')
-rw-r--r-- | lib/vty_io_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ; } ; |