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_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vty_io_file.c') diff --git a/lib/vty_io_file.c b/lib/vty_io_file.c index 4b1a8cfa..b98dd694 100644 --- a/lib/vty_io_file.c +++ b/lib/vty_io_file.c @@ -700,7 +700,7 @@ uty_file_read_close(vio_vf vf, bool final) extern cmd_return_code_t uty_file_write_close(vio_vf vf, bool final, bool base) { - VTY_ASSERT_CLI_THREAD_LOCKED() ; + VTY_ASSERT_CAN_CLOSE_VF(vf) ; assert(vf->vout_state == vf_closing) ; assert((vf->vout_type == VOUT_FILE) || (vf->vout_type == VOUT_CONFIG)) ; -- cgit v1.2.3