[CFR] reflect resolv.conf update to running application

John Baldwin jhb at FreeBSD.org
Sat Aug 20 18:52:00 GMT 2005


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 lookup 
since he changed the code to always call _res_init() instead of only when the 
INIT flag was clear.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-arch mailing list