consistently check for fds, allow programs to mess with sytem fds to some extent (unsupported)

master
Marc Alexander Lehmann 12 years ago
parent 85dd78b2cc
commit 10d5f2ee3a

@ -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);

Loading…
Cancel
Save