From e852d6bc48ee32f3d7df323ab08f811a6fc34c54 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 14 Jan 2014 22:05:33 +0000 Subject: libc/resolv: Use poll() instead of kqueue(). 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). Reviewed by: jhb --- lib/libc/include/port_before.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/include') diff --git a/lib/libc/include/port_before.h b/lib/libc/include/port_before.h index 304dd66df03fc..9e7525b59b542 100644 --- a/lib/libc/include/port_before.h +++ b/lib/libc/include/port_before.h @@ -5,7 +5,7 @@ #define _LIBC 1 #define DO_PTHREADS 1 -#define USE_KQUEUE 1 +#define USE_POLL 1 #define ISC_SOCKLEN_T socklen_t #define ISC_FORMAT_PRINTF(fmt, args) \ -- cgit v1.3