198 |
continue; |
continue; |
199 |
|
|
200 |
if ((ep_fdlist[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR))) |
if ((ep_fdlist[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR))) |
201 |
|
{ |
202 |
if ((hdl = F->read_handler) != NULL) |
if ((hdl = F->read_handler) != NULL) |
203 |
{ |
{ |
204 |
F->read_handler = NULL; |
F->read_handler = NULL; |
205 |
hdl(F, F->read_data); |
hdl(F, F->read_data); |
206 |
if (!F->flags.open) |
if (!F->flags.open) |
207 |
continue; |
continue; |
208 |
} |
} |
209 |
|
} |
210 |
|
|
211 |
if ((ep_fdlist[i].events & (EPOLLOUT | EPOLLHUP | EPOLLERR))) |
if ((ep_fdlist[i].events & (EPOLLOUT | EPOLLHUP | EPOLLERR))) |
212 |
|
{ |
213 |
if ((hdl = F->write_handler) != NULL) |
if ((hdl = F->write_handler) != NULL) |
214 |
{ |
{ |
215 |
F->write_handler = NULL; |
F->write_handler = NULL; |
216 |
hdl(F, F->write_data); |
hdl(F, F->write_data); |
217 |
if (!F->flags.open) |
if (!F->flags.open) |
218 |
continue; |
continue; |
219 |
} |
} |
220 |
|
} |
221 |
|
|
222 |
comm_setselect(F, 0, NULL, NULL, 0); |
comm_setselect(F, 0, NULL, NULL, 0); |
223 |
} |
} |