]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
INSIST that there are no outstanding tasks when the task manager is
authorMark Andrews <marka@isc.org>
Fri, 29 Mar 2002 01:25:04 +0000 (01:25 +0000)
committerMark Andrews <marka@isc.org>
Fri, 29 Mar 2002 01:25:04 +0000 (01:25 +0000)
about to be destroyed (non-threaded).

lib/isc/task.c

index 9cd83a3569db7dc3ced4eebaa090e217fd0bca6a..21a72e0e1e74834238d16b8256b47e60ccf94811 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: task.c,v 1.86 2001/11/27 01:56:08 gson Exp $ */
+/* $Id: task.c,v 1.87 2002/03/29 01:25:04 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);