From 56f1bf30e61c53646dd2f8425da7c7fa0d97b3e1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 5 Apr 2018 15:54:12 -0700 Subject: fixes #335 eventfd seems unreliable on Linux (Ubuntu 17.10) --- src/platform/posix/posix_pipe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/posix/posix_pipe.c b/src/platform/posix/posix_pipe.c index bc42abec..fcca0aba 100644 --- a/src/platform/posix/posix_pipe.c +++ b/src/platform/posix/posix_pipe.c @@ -17,6 +17,11 @@ // This implementation of notification pipes works ~everywhere on POSIX, // as it only relies on pipe() and non-blocking I/O. +// So as much as we would like to use eventfd, it turns out to be completely +// busted on some systems (latest Ubuntu release for example). So we go +// back to the old but repliable pipe() system call. +#undef NNG_USE_EVENTFD + #ifdef NNG_USE_EVENTFD // Linux eventfd. This is lighter weight than pipes, and has better semantics -- cgit v1.2.3-70-g09d2