diff options
| author | Victor Stinner <vstinner@python.org> | 2020-01-07 15:00:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-07 15:00:02 +0100 |
| commit | 5b23f7618d434f3000bde482233c8642a6eb2c67 (patch) | |
| tree | 508eda874d33efba8977a29e1ac4447b4d3a8cb1 /Modules/selectmodule.c | |
| parent | 10ac0cded26d91c3468e5e5a87cecad7fc0bcebd (diff) | |
| download | cpython-git-5b23f7618d434f3000bde482233c8642a6eb2c67.tar.gz | |
bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882)
The select.epoll.unregister() method no longer ignores the EBADF
error.
Diffstat (limited to 'Modules/selectmodule.c')
| -rw-r--r-- | Modules/selectmodule.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 79cc1b2655..7c6d7e4a15 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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: |
