resolv: Automatically reload a changed /etc/resolv.conf file [BZ #984]
commitaef16cc8a4c670036d45590877d411a97f01e0cd
authorFlorian Weimer <fweimer@redhat.com>
Mon, 3 Jul 2017 19:06:23 +0000 (3 21:06 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 3 Jul 2017 19:06:23 +0000 (3 21:06 +0200)
tree4403f1962170ce92087a6e1af62dbb92e15d27f6
parenta1c4eb8794e789b5055d7ceb13b2b3231abf5e26
resolv: Automatically reload a changed /etc/resolv.conf file [BZ #984]

This commit enhances the stub resolver to reload the configuration
in the per-thread _res object if the /etc/resolv.conf file has
changed.  The resolver checks whether the application has modified
_res and will not overwrite the _res object in that case.

The struct resolv_context mechanism is used to check the
configuration file only once per name lookup.
ChangeLog
NEWS
resolv/res_debug.c
resolv/res_init.c
resolv/res_libc.c
resolv/resolv-internal.h
resolv/resolv.h
resolv/resolv_conf.c
resolv/resolv_conf.h
resolv/resolv_context.c
resolv/tst-resolv-res_init-skeleton.c