1118. [bug] On multithreaded servers, a race condition
could cause an assertion failure in resolver.c
during resolver shutdown. [RT #2029]
+1118. [bug] On multithreaded servers, a race condition
+ could cause an assertion failure in resolver.c
+ during resolver shutdown. [RT #2029]
+
1117. [port] The configure check for in6addr_loopback incorrectly
succeeded on AIX 4.3 when compiling with -O2
because the test code was optimized away.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: resolver.c,v 1.218.2.5 2001/11/04 19:21:50 gson Exp $ */
+/* $Id: resolver.c,v 1.218.2.6 2001/11/12 22:37:05 marka Exp $ */
#include <config.h>
FCTXTRACE("doshutdown");
- fctx->attributes |= FCTX_ATTR_SHUTTINGDOWN;
-
/*
* An fctx that is shutting down is no longer in ADDRWAIT mode.
*/
LOCK(&res->buckets[bucketnum].lock);
+ fctx->attributes |= FCTX_ATTR_SHUTTINGDOWN;
+
INSIST(fctx->state == fetchstate_active ||
fctx->state == fetchstate_done);
INSIST(fctx->want_shutdown);