Skip to content

gh-144748: Make EINTR retry paths honor PyThreadState_SetAsyncExc#144926

Closed
VanshAgarwal24036 wants to merge 1 commit intopython:mainfrom
VanshAgarwal24036:gh-144748-eintr-async-exc
Closed

gh-144748: Make EINTR retry paths honor PyThreadState_SetAsyncExc#144926
VanshAgarwal24036 wants to merge 1 commit intopython:mainfrom
VanshAgarwal24036:gh-144748-eintr-async-exc

Conversation

@VanshAgarwal24036
Copy link
Contributor

@VanshAgarwal24036 VanshAgarwal24036 commented Feb 17, 2026

Ensure that PyThreadState_SetAsyncExc interrupts threads blocked in EINTR retry paths (e.g., time.sleep()) by checking async exceptions in _PyEval_MakePendingCalls. Includes a regression test.

@VanshAgarwal24036
Copy link
Contributor Author

@vstinner Can you please review it when you are free.

@picnixz
Copy link
Member

picnixz commented Feb 17, 2026

Again, can you WAIT before opening PRs? there was no discussion, I am not even sure it is actually a bug and I am not even sure how it should be fixed. So please, stop it. Interpreter-core related issues are not newcomers friendly and I would appreciate that someone more familiar with the C API and the interpreter tackles those issues.

@picnixz picnixz closed this Feb 17, 2026
@VanshAgarwal24036
Copy link
Contributor Author

Sorry i will keep it in mind for future to not tackle such issues before discussion.

@picnixz
Copy link
Member

picnixz commented Feb 17, 2026

It is not the first time that I asked you that. So please, do so. Otherwise, we will be forced to restrict the access to the repository.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments