◐ Shell
reader mode source ↗
Skip to content

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

Merged
vstinner merged 2 commits into
python: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 into
python:mainfrom
aisk:fix-select-close

Conversation

@aisk

@aisk aisk commented Mar 20, 2026

Copy link
Copy Markdown
Member

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM

Hide details View details @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
Copy Markdown
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.

ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…odule (python#146206)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
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