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:24:00
On Wed, Feb 26, 2003 at 10:23:55AM -0500, Perry E. Metzger wrote:

 > It would be nice to fix this someday. A kqueue listening on the
 > /etc/resolv.conf file would do it nicely without having to poll.

I suspect you don't understand how the kqueue API works.  You do, in fact,
have to poll for the events by calling the kevent(2) system call.

So, if you have to make a system call *anyway*, you might as well just
use stat(2).

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>