On Fri, Jun 18, 2010 at 8:23 AM, Stephen Gallagher <sgall...@redhat.com> wrote:
>
> This is the entire purpose of the res_init() function in glibc. If your
> application needs to be aware of a change in resolv.conf, you should be
> monitoring it with inotify and calling res_init() anytime the file is
> changed.

That's awful.  Really, really awful.  Do you have any idea how many
things would need to be patched to do that?  Other operating systems
handle this just fine.  Asking every component to use inotify and
res_init() because the glibc maintainers apparently think a simple
stat() on a sure-to-be-in-kernel cache inode is too expensive...well,
think about it.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to