summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-04-05 15:54:12 -0700
committerGarrett D'Amore <garrett@damore.org>2018-04-09 15:09:48 -0700
commit56f1bf30e61c53646dd2f8425da7c7fa0d97b3e1 (patch)
tree6f46c9fa129b6e2b12d20997988f5359948b1ff3 /src
parent45f455064b5704f3d5ed8ecf9f197a18fe72ee59 (diff)
downloadnng-56f1bf30e61c53646dd2f8425da7c7fa0d97b3e1.tar.gz
nng-56f1bf30e61c53646dd2f8425da7c7fa0d97b3e1.tar.bz2
nng-56f1bf30e61c53646dd2f8425da7c7fa0d97b3e1.zip
fixes #335 eventfd seems unreliable on Linux (Ubuntu 17.10)
Diffstat (limited to 'src')
-rw-r--r--src/platform/posix/posix_pipe.c5
1 files changed, 5 insertions, 0 deletions
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