You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-01-07.20:41:57.629>created_at=<Date2020-01-06.23:34:48.175>labels= ['library', '3.9']
title='select.epoll.unregister(fd) should not ignore EBADF'updated_at=<Date2020-01-07.20:41:57.629>user='https://github.com/vstinner'
This behavior may lead to bugs if the file descriptor number has been recycled in the meanwhile. I'm not sure that it's a good idea to silently ignore the error.
See bpo-18748 for a similar issue: "io.IOBase destructor silence I/O error on close() by default".
Note: The method also ignores EBADF error if the epoll file descriptor has been closed.
The behavior is as old as the implementation of select.epoll, bpo-1657:
Applied patch bpo-1657 epoll and kqueue wrappers for the select module
The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support a
nd help.
TODO: Finish documentation documentation
Thomas Herve wrote a first implementation in bpo-1675118, but it seems like it was Christian Heimes who wrote the unregister() method.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: