… | |
… | |
237 | |
237 | |
238 | inline_size |
238 | inline_size |
239 | int |
239 | int |
240 | epoll_init (EV_P_ int flags) |
240 | epoll_init (EV_P_ int flags) |
241 | { |
241 | { |
242 | #ifdef EPOLL_CLOEXEC |
242 | #if defined EPOLL_CLOEXEC && !defined __ANDROID__ |
243 | backend_fd = epoll_create1 (EPOLL_CLOEXEC); |
243 | backend_fd = epoll_create1 (EPOLL_CLOEXEC); |
244 | |
244 | |
245 | if (backend_fd < 0 && (errno == EINVAL || errno == ENOSYS)) |
245 | if (backend_fd < 0 && (errno == EINVAL || errno == ENOSYS)) |
246 | #endif |
246 | #endif |
247 | backend_fd = epoll_create (256); |
247 | backend_fd = epoll_create (256); |