removed unnecessary locking in ns_interface_shutdown() that

caused the server to deadlock on shutdown on the Alphas.
This commit is contained in:
Andreas Gustafsson
2000-06-30 02:48:06 +00:00
parent 778775be7a
commit 8f874cca90
+1 -4
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: interfacemgr.c,v 1.44 2000/06/22 21:49:19 tale Exp $ */
/* $Id: interfacemgr.c,v 1.45 2000/06/30 02:48:06 gson Exp $ */
#include <config.h>
@@ -159,7 +159,6 @@ void
ns_interfacemgr_shutdown(ns_interfacemgr_t *mgr) {
REQUIRE(NS_INTERFACEMGR_VALID(mgr));
LOCK(&mgr->lock);
/*
* Shut down and detach all interfaces.
* By incrementing the generation count, we make purge_old_interfaces()
@@ -167,8 +166,6 @@ ns_interfacemgr_shutdown(ns_interfacemgr_t *mgr) {
*/
mgr->generation++;
purge_old_interfaces(mgr);
INSIST(ISC_LIST_EMPTY(mgr->interfaces));
UNLOCK(&mgr->lock);
}