Subject: Re: reloading /etc/resolv.conf
To: Perry E. Metzger <perry@piermont.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: netbsd-help
Date: 02/26/2003 08:36:24
On Wed, Feb 26, 2003 at 11:33:04AM -0500, Perry E. Metzger wrote:
> Not everything operates that way. In particular, more and more of our
> programs are event driven and block in select, poll, or kevent anyway,
> waiting for I/O or other events. Under such circumstances, checking
> for changes to resolv.conf is free.
Right, so, the resolver code in libc doesn't do this. Therefore,
a kevent(2) call would be necessary in order to detect a change to
the file.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>