Reloading of /etc/resolv.conf

Sebastian Kienzl seb@riot.org
Mon Mar 15 23:46:00 GMT 2010


Hello!

There's a patch in the wild against the resolver which makes it reload
/etc/resolv.conf on change, see
http://sources.redhat.com/ml/libc-alpha/2004-09/msg00130.html

However, this patch actually doesn't work properly for multi-threaded
programs, as only one thread will notice the change and refresh its
resolver state. I've attached a proper patch. It's for 2.5 but it should
work with current versions, too.

Even though the patch may not be interesting for upstream, I decided to
let you know about this problem, since the mentioned patch seems to be
used by at least Debian and Ubuntu.

Regards,
Seb.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glibc-2.5-resolvconf.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20100315/0b196a2d/attachment.ksh>


More information about the Libc-alpha mailing list