Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.3k
Closed
Description
Bug report
Bug description:
Summary
Multiple sites inModules/selectmodule.c checkif (errno < 0) after close/epoll_ctl calls. Sinceerrno is anint set to positive values (POSIX), this check is always false. Close errors are silently swallowed.
Fix
Changeif (errno < 0) toif (retval < 0) (check the return value, not errno directly).
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response