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/command.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index 1c66c083..ba7c4bb2 100644 --- a/lib/command.h +++ b/lib/command.h @@ -393,4 +393,8 @@ extern char *argv_concat (const char* const* argv, int argc, int shift); /* struct host global, ick */ extern struct host host; +#ifdef QDEBUG +extern const char *debug_banner ; +#endif + #endif /* _ZEBRA_COMMAND_H */ -- cgit v1.2.3