From db0632a8aeb717cb715c444ae203f38ec42a92e6 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Wed, 16 Jun 2010 21:02:37 +0100 Subject: Fixes to vty stuff so that zebra runs. Changes to vty handling require the library to behave one way when running as part of the new (threaded) bgpd and another way when running as part of any of the other Quagga daemons. Code to revoke things from the command queue failed to test whether it was running as part of the new bgpd or not. --- lib/vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/vty.c') diff --git a/lib/vty.c b/lib/vty.c index 51bf4a5a..9b1e5d87 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -440,7 +440,8 @@ uty_reset (bool curtains, const char* why) vio = next ; next = sdl_next(vio, vio_list) ; - cq_revoke(vio->vty) ; + if (vio->type == VTY_TERM) + cq_revoke(vio->vty) ; if (why != NULL) vio->close_reason = why ; -- cgit v1.2.3