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:02:24
On Wed, Feb 26, 2003 at 10:25:03AM -0500, Perry E. Metzger wrote:
> A kqueue seems even cheaper, though, and probably good practice...
No, in this case, it is not, since you still have to call the kqueue
syscall to poll for the file change. If you're making a syscall to
poll anyway, why not use do a stat? Stat would be cheaper for e.g.
NFS, as well (or any other remote file system).
Kqueue isn't the be-all-end-all solution to every problem, Perry.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>