public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* /etc/resolv.conf caching bug fixed in glibc
@ 2017-08-03 15:33 Jack O'Connor
  2017-08-07  5:55 ` Sebastian Huber
  0 siblings, 1 reply; 2+ messages in thread
From: Jack O'Connor @ 2017-08-03 15:33 UTC (permalink / raw)
  To: newlib

Glibc just released version 2.26, with the following note under "major
new features":

> The GNU C Library will now detect when /etc/resolv.conf has been modified and reload the changed configuration.

That refers to this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=984

And this patch:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=aef16cc8a4c670036d45590877d411a97f01e0cd;hp=a1c4eb8794e789b5055d7ceb13b2b3231abf5e26

I had hit this bug in the past
(https://github.com/golang/go/issues/21083), and I was eyeballing
other libc implementations to see if they might have the same problem.
It looks like Newlib might? But this was my first time looking at the
source, and I wanted to ask the experts :)

- Jack

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /etc/resolv.conf caching bug fixed in glibc
  2017-08-03 15:33 /etc/resolv.conf caching bug fixed in glibc Jack O'Connor
@ 2017-08-07  5:55 ` Sebastian Huber
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Huber @ 2017-08-07  5:55 UTC (permalink / raw)
  To: Jack O'Connor, newlib

Hello Jack,

On 03/08/17 17:33, Jack O'Connor wrote:
> Glibc just released version 2.26, with the following note under "major
> new features":
>
>> The GNU C Library will now detect when /etc/resolv.conf has been modified and reload the changed configuration.

Newlib has no networks stack included. It is usually provided by the 
operating systems that use Newlib. On RTEMS for example we use the 
FreeBSD network stack. The FreeBSD resolver checks the 
"/etc/resolv.conf" at most every two seconds (configurable). See

https://github.com/freebsd/freebsd/blob/master/lib/libc/resolv/res_state.c#L67

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-07  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-03 15:33 /etc/resolv.conf caching bug fixed in glibc Jack O'Connor
2017-08-07  5:55 ` Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).