This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/984] Respond to changed resolv.conf in gethostbyname
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 03 Jul 2017 19:07:36 +0000
- Subject: [Bug network/984] Respond to changed resolv.conf in gethostbyname
- Auto-submitted: auto-generated
- References: <bug-984-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=984
--- Comment #19 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via aef16cc8a4c670036d45590877d411a97f01e0cd (commit)
from a1c4eb8794e789b5055d7ceb13b2b3231abf5e26 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=aef16cc8a4c670036d45590877d411a97f01e0cd
commit aef16cc8a4c670036d45590877d411a97f01e0cd
Author: Florian Weimer <fweimer@redhat.com>
Date: Mon Jul 3 21:06:23 2017 +0200
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 33 +++++++++++++
NEWS | 4 ++
resolv/res_debug.c | 1 +
resolv/res_init.c | 78 ++++++++++++++++++-----------
resolv/res_libc.c | 18 -------
resolv/resolv-internal.h | 3 -
resolv/resolv.h | 1 +
resolv/resolv_conf.c | 86 ++++++++++++++++++++++++++++++++-
resolv/resolv_conf.h | 17 +++++--
resolv/resolv_context.c | 53 ++++++++++++++------
resolv/tst-resolv-res_init-skeleton.c | 72 +++++++++++++++++++--------
11 files changed, 272 insertions(+), 94 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.