From efa40683667e254616236bfff9170727b4f93a0f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Nov 2011 00:17:15 +0000 Subject: consistently check for fds, allow programs to mess with sytem fds to some extent (unsupported) --- ev_epoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ev_epoll.c') diff --git a/ev_epoll.c b/ev_epoll.c index 58bf9b9..240b7b9 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) #endif backend_fd = epoll_create (256); -- cgit v1.2.3