Python and /etc/resolv.conf changes

Colin Walters walters at verbum.org
Wed Jan 21 14:26:42 UTC 2009


On Tue, Jan 20, 2009 at 8:19 PM, Colin Walters <walters at verbum.org> wrote:
>
> Both Debian/Ubuntu
> (http://patches.ubuntu.com/g/glibc/extracted/any/local-dynamic-resolvconf.diff)
> and OpenSUSE (http://download.opensuse.org/distribution/11.0/repo/src-oss/suse/src/glibc-2.8-14.1.src.rpm,
> resolv.dynamic.diff) ship a patch to glibc which stats() resolv.conf.
> We do not.

Thinking about this a bit more this morning on the shuttle, there's a
strong argument that this is a glibc bug, and that the stat() approach
is a correct fix, if not necessarily the most ideal one.  That
argument is simply that glibc is caching data without a mechanism for
invalidation; and a cache without invalidation is always a bug.




More information about the devel mailing list