From e52d205799be922db0c1c63ae48a4921707183b4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 5 May 2018 17:21:55 -0700 Subject: fixes #393 panic on illumos - epoll assertion error This replaces the epoll support with proper illumos/SunOS port events. The port event support is structured so that it actually is superior to epoll and kqueue, because it avoids a single master lock on the poller. In the future we will explore this for macOS and Linux pollers. --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a3e36ee8..96747bc3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,7 +106,11 @@ if (NNG_PLATFORM_POSIX) ) endif() -if (NNG_HAVE_KQUEUE) +if (NNG_HAVE_PORT_CREATE) + set (NNG_SOURCES ${NNG_SOURCES} + platform/posix/posix_pollq_port.c + ) +elseif (NNG_HAVE_KQUEUE) set (NNG_SOURCES ${NNG_SOURCES} platform/posix/posix_pollq_kqueue.c ) -- cgit v1.2.3-70-g09d2