Open GoodenoughPhysicsLab opened 6 days ago
cc @zooba as the Windows expert. The reproducer can be killed by just CTRL+C-ing twice on Linux.
I would prefer to make PyThread_join_thread
aware of _PyOS_SigintEvent
so that it can abort its wait.
That said, I am certain we have discussed this before, and presumably it's not so easy. I don't remember exactly why, but there'll be an issue somewhere with details.
That said, I am certain we have discussed this before, and presumably it's not so easy. I don't remember exactly why, but there'll be an issue somewhere with details.
No matter how difficult it is, I want to have a try.
Bug report
Bug description:
on windows, Thread.join is sometimes terrible because exception can not interrupt its blocking.
you can't exit this program by Ctrl+C on windows.
we can easily fix it to let exceptions been raisen.
this is what I want to fix in _python_exit, which been registered in atexit-call and it costs me a lot of time to realize what's problem with my program.
I'll send pr soon.
CPython versions tested on:
3.9, 3.10, 3.11, 3.12
Operating systems tested on:
Windows
Linked PRs