2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

add lock comment

This commit is contained in:
Mark Andrews 2008-05-03 05:07:13 +00:00
parent 3e358ada3e
commit 0dba2713de

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: adb.c,v 1.240 2008/05/02 04:40:12 marka Exp $ */ /* $Id: adb.c,v 1.241 2008/05/03 05:07:13 marka Exp $ */
/*! \file /*! \file
* *
@ -1772,6 +1772,9 @@ shutdown_task(isc_task_t *task, isc_event_t *ev) {
INSIST(DNS_ADB_VALID(adb)); INSIST(DNS_ADB_VALID(adb));
isc_event_free(&ev); isc_event_free(&ev);
/*
* Wait for lock around check_exit() call to be released.
*/
LOCK(&adb->lock); LOCK(&adb->lock);
UNLOCK(&adb->lock); UNLOCK(&adb->lock);
destroy(adb); destroy(adb);