ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_epoll.c
(Generate patch)

Comparing libev/ev_epoll.c (file contents):
Revision 1.65 by root, Tue Nov 1 00:17:15 2011 UTC vs.
Revision 1.66 by root, Sun Dec 18 17:47:23 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines