[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-07 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5b23f7618d434f3000bde482233c8642a6eb2c67 by Victor Stinner in branch 'master': bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882) https://github.com/python/cpython/commit/5b23f7618d434f3000bde482233c8642a6eb2c67 -- _

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17882 ___ Python tracker ___ _

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-06 Thread STINNER Victor
New submission from STINNER Victor : The select.epoll.unregister(fd) method currently ignores EBADF error if the file descriptor fd is invalid. I'm surprised by this undocumented behavior: https://docs.python.org/dev/library/select.html#select.epoll.unregister This behavior may lead to bugs i