epoll: don't try to read from closed FDs
This commit is contained in:
parent
b1f0549361
commit
c53b6ef2cc
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ rb_select_epoll(long delay)
|
||||||
PF *hdl;
|
PF *hdl;
|
||||||
rb_fde_t *F = ep_info->pfd[i].data.ptr;
|
rb_fde_t *F = ep_info->pfd[i].data.ptr;
|
||||||
old_flags = F->pflags;
|
old_flags = F->pflags;
|
||||||
|
|
||||||
|
if(!IsFDOpen(F))
|
||||||
|
continue;
|
||||||
if(ep_info->pfd[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR))
|
if(ep_info->pfd[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR))
|
||||||
{
|
{
|
||||||
hdl = F->read_handler;
|
hdl = F->read_handler;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue