From 42823e32ea87b2cd8690e120f22dc12c9fdbebb9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 29 Mar 2002 01:41:01 +0000 Subject: [PATCH] pullup: INSIST that there are no outstanding tasks when the task manager is about to be destroyed (non-threaded). This will also produce more useful core dumps if triggered. --- lib/isc/task.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/task.c b/lib/isc/task.c index 3e1cb9dca1..2dfcc5c909 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: task.c,v 1.85 2001/06/04 19:33:28 tale Exp $ */ +/* $Id: task.c,v 1.85.2.1 2002/03/29 01:41:01 marka Exp $ */ /* * Principal Author: Bob Halley @@ -1211,6 +1211,7 @@ isc_taskmgr_destroy(isc_taskmgr_t **managerp) { UNLOCK(&manager->lock); while (isc__taskmgr_ready()) (void)isc__taskmgr_dispatch(); + INSIST(ISC_LIST_EMPTY(manager->tasks)); #endif /* ISC_PLATFORM_USETHREADS */ manager_free(manager);