|Subject:||epoll: fix misordered EPOLL_CTL_DEL call|
|Date:||Wed, 8 May 2019 19:02:56 +0000|
|To:||bug-Danga-Socket [...] rt.cpan.org|
|From:||Eric Wong <e [...] 80x24.org>|
Any operations on an fd after POSIX::close() are invalid, so epoll_ctl will fail. Worse off, in a multi-threaded Perl, the fd may be reused by another thread and EPOLL_CTL_DEL can hit the wrong file description as a result. Patch attached.
Message body is not shown because sender requested not to inline it.