summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev_epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index b4e02c2..f5ad618 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -238,7 +238,7 @@ epoll_init (EV_P_ int flags)
#ifdef EPOLL_CLOEXEC
backend_fd = epoll_create1 (EPOLL_CLOEXEC);
- if (backend_fd < 0)
+ if (backend_fd < 0 && (errno == EINVAL || errno == ENOSYS))
#endif
backend_fd = epoll_create (256);