iphlpapi: _res is per-thread in glibc with pthreads (try 2)

Dan Kegel dank at kegel.com
Mon Feb 8 08:25:36 CST 2010


With test.  Without the fix, the test case crashes on my machine
if you add more than one nameserver in /etc/resolv.conf.
Fixes crash in bug http://bugs.winehq.org/show_bug.cgi?id=21624

Same fix probably needed in dnsapi, or maybe iphlpapi should
use dnsapi rather than unix dns api.

Thanks to AF for the analysis.

Change since first posted: much simpler, use the init
bit built into the resolver.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ip2.patch
Type: text/x-patch
Size: 1772 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100208/06972cf7/attachment.bin>


More information about the wine-patches mailing list