From 4876784d99d81f66b07f9806ef5660d6cc229e58 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Wed, 28 Apr 2010 12:20:52 +0100 Subject: Fix vty being closed while waiting on '--more--' prompt. The vty_half_close() did not properly take care of the CLI state when in "cli_more_wait" state. This fix tests for cli_more_wait state in vty_half_close() and explicitly exits that state. (Instead of letting the state be cleared implicitly, which didn't quite tidy up quickly enough.) --- lib/vty_cli.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/vty_cli.h') diff --git a/lib/vty_cli.h b/lib/vty_cli.h index 5bf682ac..f532616a 100644 --- a/lib/vty_cli.h +++ b/lib/vty_cli.h @@ -35,7 +35,9 @@ extern enum vty_readiness uty_cli(vty_io vio) ; extern keystroke_callback uty_cli_iac_callback ; extern void uty_cli_hist_add (vty_io vio, const char* cmd_line) ; -extern void uty_cli_go_more_wait(vty_io vio) ; +extern void uty_cli_enter_more_wait(vty_io vio) ; +extern void uty_cli_exit_more_wait(vty_io vio) ; + extern void uty_free_host_name(void) ; extern void uty_check_host_name(void) ; -- cgit v1.2.3