Subject: Re: re-reading /etc/resolv.conf on change
To: Perry E. Metzger <perry@piermont.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-userlevel
Date: 12/31/2003 16:08:12
On Tue, Dec 30, 2003 at 09:47:38AM -0500, Perry E. Metzger wrote:
>
> sjg@crufty.net (Simon J. Gerraty) writes:
> > Is kqueue the right solution then? How bad would it be to simply
> > open resolv.conf and fstat it?
>
> I think that might actually be the right solution.
I don't think so, see my previous answerw. To catch all the possible changes
kqueue does, you need stat(), not fstat().
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 23 ans d'experience feront toujours la difference
--