mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-21 08:50:32 -05:00
INSIST that there are no outstanding tasks when the task manager is
about to be destroyed (non-threaded).
This commit is contained in:
parent
7d3458a972
commit
0bd9d19281
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue