… | |
… | |
245 | if (backend_fd < 0) |
245 | if (backend_fd < 0) |
246 | return 0; |
246 | return 0; |
247 | |
247 | |
248 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); |
248 | fcntl (backend_fd, F_SETFD, FD_CLOEXEC); |
249 | |
249 | |
250 | backend_mintime = 1./1024.; /* epoll does sometimes return early, this is just to avoid the worst */ |
250 | backend_mintime = 1e-3; /* epoll does sometimes return early, this is just to avoid the worst */ |
251 | backend_modify = epoll_modify; |
251 | backend_modify = epoll_modify; |
252 | backend_poll = epoll_poll; |
252 | backend_poll = epoll_poll; |
253 | |
253 | |
254 | epoll_eventmax = 64; /* initial number of events receivable per poll */ |
254 | epoll_eventmax = 64; /* initial number of events receivable per poll */ |
255 | epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax); |
255 | epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax); |