[CFR] reflect resolv.conf update to running application

Hajimu UMEMOTO ume at freebsd.org
Sun Aug 21 10:27:21 GMT 2005


Hi,

>>>>> On Sun, 21 Aug 2005 11:54:54 +0200
>>>>> Alexander Leidinger <Alexander at 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 at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-arch mailing list