- epoll_fd = epoll_create (256);
-
- if (epoll_fd < 0)
- return;
-
- fcntl (epoll_fd, F_SETFD, FD_CLOEXEC);
-
- ev_method = EVMETHOD_EPOLL;
- method_fudge = 1e-3; /* needed to compensate for epoll returning early */
- method_modify = epoll_modify;
- method_poll = epoll_poll;
-
- eventmax = 64; /* intiial number of events receivable per poll */
- events = malloc (sizeof (struct epoll_event) * eventmax);
+ ev_method = EVMETHOD_POLL;
+ method_fudge = 1e-3; /* needed to compensate for select returning early, very conservative */
+ method_modify = poll_modify;
+ method_poll = poll_poll;