Skip to content

gh-146205: Check the errno with != 0 in close impls in select module#146206

Merged
vstinner merged 2 commits intopython:mainfrom
aisk:fix-select-close
Mar 20, 2026
Merged

gh-146205: Check the errno with != 0 in close impls in select module#146206
vstinner merged 2 commits intopython:mainfrom
aisk:fix-select-close

Conversation

@aisk
Copy link
Member

@aisk aisk commented Mar 20, 2026

Also changed to set the errno to err only if err != 0.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinner vstinner merged commit 9f9faa2 into python:main Mar 20, 2026
54 checks passed
@aisk aisk deleted the fix-select-close branch March 20, 2026 13:44
@vstinner
Copy link
Member

PR merged, thanks for the fix.

I'm not sure about backporting this change to 3.13 and 3.14. This change can cause applications to start failing since errors were ignored silently previously. I prefer to only introduce the change in Python 3.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants