Browse Source

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

master
Marc Alexander Lehmann 10 years ago
parent
commit
10d5f2ee3a
  1. 2
      ev_epoll.c

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

Loading…
Cancel
Save