epoll: don't try to read from closed FDs

This commit is contained in:
Simon Arlott 2016-04-27 21:16:29 +01:00
parent b1f0549361
commit c53b6ef2cc
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -188,6 +188,9 @@ rb_select_epoll(long delay)
PF *hdl;
rb_fde_t *F = ep_info->pfd[i].data.ptr;
old_flags = F->pflags;
if(!IsFDOpen(F))
continue;
if(ep_info->pfd[i].events & (EPOLLIN | EPOLLHUP | EPOLLERR))
{
hdl = F->read_handler;