Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-39239: epoll.unregister() no longer ignores EBADF #17882
Conversation
The select.epoll.unregister() method no longer ignores the EBADF error.
This comment has been minimized.
This comment has been minimized.
I don't recall why I ignored EBADF here. Victor has made a compelling argument to stop ignoring the error. I trust his judgement. |
This comment has been minimized.
This comment has been minimized.
I agree with the pull request. |
This comment has been minimized.
This comment has been minimized.
@asvetlov: "I agree with the pull request. Silent ignoring of an error was a bad idea and looks like oversight." Do you expect EBADF errors in legit asyncio code? I don't think so. asyncio is not supposed to unregister a closed FD. I mean: I don't see why I would happen, except if the application does something wrong, no? |
This comment has been minimized.
This comment has been minimized.
You are correct. |
5b23f76
into
python:master
This comment has been minimized.
This comment has been minimized.
+1 |
This comment has been minimized.
This comment has been minimized.
@giampaolo: "+1" Oh ok, so I wasn't the only one surprised by ignoring silently EBADF ;-) |
vstinner commentedJan 6, 2020
•
edited by bedevere-bot
The select.epoll.unregister() method no longer ignores the EBADF
error.
https://bugs.python.org/issue39239