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.57 by root, Sat Jan 8 10:25:16 2011 UTC vs.
Revision 1.58 by root, Mon Jan 10 14:05:23 2011 UTC

141static void 141static void
142epoll_poll (EV_P_ ev_tstamp timeout) 142epoll_poll (EV_P_ ev_tstamp timeout)
143{ 143{
144 int i; 144 int i;
145 int eventcnt; 145 int eventcnt;
146 146
147 /* epoll wait times cannot be larger than (LONG_MAX - 999UL) / HZ msecs, which is below */ 147 /* epoll wait times cannot be larger than (LONG_MAX - 999UL) / HZ msecs, which is below */
148 /* the default libev max wait time, however. */ 148 /* the default libev max wait time, however. */
149 EV_RELEASE_CB; 149 EV_RELEASE_CB;
150 eventcnt = epoll_wait (backend_fd, epoll_events, epoll_eventmax, (int)ceil (timeout * 1000.)); 150 eventcnt = epoll_wait (backend_fd, epoll_events, epoll_eventmax,
151 epoll_epermcnt ? 0 : (int)ceil (timeout * 1000.));
151 EV_ACQUIRE_CB; 152 EV_ACQUIRE_CB;
152 153
153 if (expect_false (eventcnt < 0)) 154 if (expect_false (eventcnt < 0))
154 { 155 {
155 if (errno != EINTR) 156 if (errno != EINTR)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines