Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2005 19:27:07 +0900
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        arch@freebsd.org, Robert Watson <rwatson@freebsd.org>
Subject:   Re: [CFR] reflect resolv.conf update to running application
Message-ID:  <yge8xyvy490.wl%ume@mahoroba.org>
In-Reply-To: <20050821115454.55441a64@Magellan.Leidinger.net>
References:  <ygefyt4yiaz.wl%ume@mahoroba.org> <20050821003536.P14178@fledge.watson.org> <20050821115454.55441a64@Magellan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Sun, 21 Aug 2005 11:54:54 +0200
>>>>> Alexander Leidinger <Alexander@Leidinger.net> said:

Alexander> Can kqueue be used instead of polling?

It may be able to use kqueue.  However, I'm not sure how kevent() is
cheap than stat().  It requires holding a file descriptor for
monitoring change of resolv.conf.  The logic will be slightly
complicate, and it may cause memory leak.  So, unless there is
significant advantage to use kqueue, stat() is better here, IMHO.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge8xyvy490.wl%ume>