From bbc04b889523c137a1556917571a4ca9ee8a324e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 8 Aug 2020 10:04:17 -0700 Subject: fixes #1275 Test timeouts on FreeBSD This was responsible for hangs in close on FreeBSD. Apparently our use of EVFILT_USER was incorrect, and rather than fix it, we have switched to using a notification pipe for synchronizing closing pipes. In addition to fixing this problem, it should significantly improve things for NetBSD and OpenBSD, which will now be able tbenefit from kqueue(), since we no longer depend on EVFILT_USER. --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 46df35d9..0aecbd8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -333,9 +333,7 @@ else () nng_check_sym(backtrace_symbols_fd execinfo.h NNG_HAVE_BACKTRACE) nng_check_struct_member(msghdr msg_control sys/socket.h NNG_HAVE_MSG_CONTROL) nng_check_sym(eventfd sys/eventfd.h NNG_HAVE_EVENTFD) - # While some systems (NetBSD) have kqueue, our use depends on EVFILT_USER - # This means that NetBSD and OpenBSD will be stuck with poll(). - nng_check_sym(EVFILT_USER sys/event.h NNG_HAVE_KQUEUE) + nng_check_sym(kqueue sys/event.h NNG_HAVE_KQUEUE) nng_check_sym(port_create port.h NNG_HAVE_PORT_CREATE) nng_check_sym(epoll_create sys/epoll.h NNG_HAVE_EPOLL) nng_check_sym(epoll_create1 sys/epoll.h NNG_HAVE_EPOLL_CREATE1) -- cgit v1.2.3-70-g09d2