From bf8558bc9cab35f31bccd6a55e51f121370765c4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 16 Jan 2000 17:40:26 +0000 Subject: Converted shutdown to a kind of reconfiguration, it's no more handled as a exception in protocol state machines. Introduced a `shutdown' CLI command. Killed few reconfiguration bugs. --- nest/rt-table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index b0d1e291..dcde0af8 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -513,7 +513,7 @@ rt_commit(struct config *new, struct config *old) if (!ot->deleted) { struct symbol *sym = cf_find_symbol(o->name); - if (sym && sym->class == SYM_TABLE) + if (sym && sym->class == SYM_TABLE && !new->shutdown) { DBG("\t%s: same\n", o->name); r = sym->def; @@ -522,7 +522,7 @@ rt_commit(struct config *new, struct config *old) } else { - DBG("\t%s: deleted", o->name); + DBG("\t%s: deleted\n", o->name); ot->deleted = old; config_add_obstacle(old); rt_lock_table(ot); -- cgit v1.2.3