+ 926. [bug] The resolver could deadlock with the ADB when
+ shutting down (multithreaded builds only).
+ [RT #1324]
+
924. [port] Extend support for pre-RFC2133 IPv6 implementation.
[RT #987]
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: resolver.c,v 1.187.2.10 2001/05/29 23:07:33 bwelling Exp $ */
+/* $Id: resolver.c,v 1.187.2.11 2001/07/11 01:23:56 gson Exp $ */
#include <config.h>
validator = ISC_LIST_NEXT(validator, link);
}
+ /*
+ * Shut down anything that is still running on behalf of this
+ * fetch. To avoid deadlock with the ADB, we must do this
+ * before we lock the bucket lock.
+ */
+ fctx_stopeverything(fctx, ISC_FALSE);
+
LOCK(&res->buckets[bucketnum].lock);
INSIST(fctx->state == fetchstate_active ||
INSIST(fctx->want_shutdown);
if (fctx->state != fetchstate_done) {
- fctx_stopeverything(fctx, ISC_FALSE);
fctx->state = fetchstate_done;
fctx_sendevents(fctx, ISC_R_CANCELED);
}