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

Comparing libev/ev_kqueue.c (file contents):
Revision 1.43 by root, Sat Mar 27 02:41:13 2010 UTC vs.
Revision 1.44 by sf-exg, Sat Apr 3 22:33:24 2010 UTC

115 { 115 {
116 int fd = kqueue_events [i].ident; 116 int fd = kqueue_events [i].ident;
117 117
118 if (expect_false (kqueue_events [i].flags & EV_ERROR)) 118 if (expect_false (kqueue_events [i].flags & EV_ERROR))
119 { 119 {
120 int err = kqueue_events [i].data; 120 int err = kqueue_events [i].data;
121 121
122 /* we are only interested in errors for fds that we are interested in :) */ 122 /* we are only interested in errors for fds that we are interested in :) */
123 if (anfds [fd].events) 123 if (anfds [fd].events)
124 { 124 {
125 if (err == ENOENT) /* resubmit changes on ENOENT */ 125 if (err == ENOENT) /* resubmit changes on ENOENT */
126 kqueue_modify (EV_A_ fd, 0, anfds [fd].events); 126 kqueue_modify (EV_A_ fd, 0, anfds [fd].events);
127 else if (err == EBADF) /* on EBADF, we re-check the fd */ 127 else if (err == EBADF) /* on EBADF, we re-check the fd */
128 { 128 {
129 if (fd_valid (fd)) 129 if (fd_valid (fd))
131 else 131 else
132 fd_kill (EV_A_ fd); 132 fd_kill (EV_A_ fd);
133 } 133 }
134 else /* on all other errors, we error out on the fd */ 134 else /* on all other errors, we error out on the fd */
135 fd_kill (EV_A_ fd); 135 fd_kill (EV_A_ fd);
136 } 136 }
137 } 137 }
138 else 138 else
139 fd_event ( 139 fd_event (
140 EV_A_ 140 EV_A_
141 fd, 141 fd,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines