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.42 by root, Mon Jun 24 21:27:57 2019 UTC vs.
Revision 1.43 by root, Wed Jun 26 00:01:46 2019 UTC

108 ev_syserr ("(libev) poll"); 108 ev_syserr ("(libev) poll");
109 } 109 }
110 else 110 else
111 for (p = polls; res; ++p) 111 for (p = polls; res; ++p)
112 { 112 {
113 assert (("libev: poll() returned illegal result, broken BSD kernel?", p < polls + pollcnt)); 113 assert (("libev: poll returned illegal result, broken BSD kernel?", p < polls + pollcnt));
114 114
115 if (expect_false (p->revents)) /* this expect is debatable */ 115 if (expect_false (p->revents)) /* this expect is debatable */
116 { 116 {
117 --res; 117 --res;
118 118
119 if (expect_false (p->revents & POLLNVAL)) 119 if (expect_false (p->revents & POLLNVAL))
120 {
121 assert (("libev: poll found invalid fd in poll set", 0));
120 fd_kill (EV_A_ p->fd); 122 fd_kill (EV_A_ p->fd);
123 }
121 else 124 else
122 fd_event ( 125 fd_event (
123 EV_A_ 126 EV_A_
124 p->fd, 127 p->fd,
125 (p->revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0) 128 (p->revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines