Skip to content

[3.9] closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569) #21670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 29, 2020

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea2)

Co-authored-by: Benjamin Peterson [email protected]

https://bugs.python.org/issue38156

…thonGH-21569)

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea2)

Co-authored-by: Benjamin Peterson <[email protected]>
@miss-islington
Copy link
Contributor Author

@benjaminp: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 2221610 into python:3.9 Jul 29, 2020
@miss-islington miss-islington deleted the backport-a74eea2-3.9 branch July 29, 2020 01:16
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.

4 participants