mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882)
The select.epoll.unregister() method no longer ignores the EBADF error.
This commit is contained in:
parent
10ac0cded2
commit
5b23f7618d
5 changed files with 13 additions and 6 deletions
|
@ -1447,11 +1447,6 @@ pyepoll_internal_ctl(int epfd, int op, int fd, unsigned int events)
|
|||
* though this argument is ignored. */
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
result = epoll_ctl(epfd, op, fd, &ev);
|
||||
if (errno == EBADF) {
|
||||
/* fd already closed */
|
||||
result = 0;
|
||||
errno = 0;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue