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.53 by root, Fri Oct 22 10:25:03 2010 UTC vs.
Revision 1.54 by sf-exg, Fri Oct 22 10:50:24 2010 UTC

148 int want = anfds [fd].events; 148 int want = anfds [fd].events;
149 int got = (ev->events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) 149 int got = (ev->events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0)
150 | (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0); 150 | (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0);
151 151
152 /* check for spurious notification */ 152 /* check for spurious notification */
153 /* we assume that fd is always in range, as we never shrink the anfds arraay */ 153 /* we assume that fd is always in range, as we never shrink the anfds array */
154 if (expect_false ((uint32_t)anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32))) 154 if (expect_false ((uint32_t)anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32)))
155 { 155 {
156 /* recreate kernel state */ 156 /* recreate kernel state */
157 postfork = 1; 157 postfork = 1;
158 continue; 158 continue;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines