Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2005 14:21:19 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org
Cc:        Julian Elischer <julian@elischer.org>, Hajimu UMEMOTO <ume@FreeBSD.org>
Subject:   Re: [CFR] reflect resolv.conf update to running application
Message-ID:  <200508201421.20498.jhb@FreeBSD.org>
In-Reply-To: <430768AC.6020502@elischer.org>
References:  <ygefyt4yiaz.wl%ume@mahoroba.org> <430768AC.6020502@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 20 August 2005 01:30 pm, Julian Elischer wrote:
> Hajimu UMEMOTO wrote:
> > Hi,
> >
> > Our resolver reads resolv.conf once, and never re-read it.  Recent
> > OpenBSD changed to re-read resolv.conf when it is updated.  I believe
> > it is useful specially for mobile environment.  So, I made a patch for
> > our resolver.  Please review it.
>
>  From a very quick read I couldn't see when it does the update.
> does it do it of EVERY lookup or only after a failed lookup?

Looks like it checks to see if the file mod date has changed on every looku=
p=20
since he changed the code to always call _res_init() instead of only when t=
he=20
INIT flag was clear.

=2D-=20
John Baldwin <jhb@FreeBSD.org> =A0<>< =A0http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508201421.20498.jhb>