Date: Tue, 23 Aug 2005 10:26:20 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Peter Jeremy <PeterJeremy@optushome.com.au> Cc: arch@freebsd.org, Matthew Reimer <mreimer@vpop.net> Subject: Re: [CFR] reflect resolv.conf update to running application Message-ID: <20050823152619.GC44859@dan.emsphone.com> In-Reply-To: <20050823074743.GC37107@cirb503493.alcatel.com.au> References: <200508221318.46908.mreimer@vpop.net> <20050823074743.GC37107@cirb503493.alcatel.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 23), Peter Jeremy said: > On Mon, 2005-Aug-22 13:18:46 -0700, Matthew Reimer wrote: > >How about just stat'ing resolv.conf if more than X seconds has > >passed since the last stat, rather than for every lookup? > > That reduces the number of stat() calls but doesn't resolve the > possibility of reading a half-written resolv.conf. Easy enough to only reread the file if stat tells you it's more than 2 seconds old. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050823152619.GC44859>