[patch] libc/resolv: use poll() instead of kqueue()
John Baldwin
jhb at freebsd.org
Mon Jan 13 20:19:24 UTC 2014
On Wednesday, January 08, 2014 5:59:52 pm Jilles Tjoelker wrote:
> The resolver in libc creates a kqueue for watching a single file
> descriptor. This can be done using poll() which should be lighter on the
> kernel and reduce possible problems with rlimits (file descriptors,
> kqueues).
I agree that a kqueue for a single fd is a bit silly in terms of overhead
compared to just calling poll.
--
John Baldwin
More information about the freebsd-hackers
mailing list