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

Comparing libev/ev_poll.c (file contents):
Revision 1.11 by root, Sat Nov 10 17:47:05 2007 UTC vs.
Revision 1.12 by root, Mon Nov 12 00:50:41 2007 UTC

92 92
93 return; 93 return;
94 } 94 }
95 95
96 for (i = 0; i < pollcnt; ++i) 96 for (i = 0; i < pollcnt; ++i)
97 if (polls [i].revents & POLLNVAL)
98 fd_kill (EV_A_ polls [i].fd);
99 else
97 fd_event ( 100 fd_event (
98 EV_A_ 101 EV_A_
99 polls [i].fd, 102 polls [i].fd,
100 (polls [i].revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0) 103 (polls [i].revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)
101 | (polls [i].revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0) 104 | (polls [i].revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0)
102 ); 105 );
103} 106}
104 107
105static int 108static int
106poll_init (EV_P_ int flags) 109poll_init (EV_P_ int flags)
107{ 110{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines