You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_PyOS_SigintEvent() is needed for interruptible waiting on main thread #128684
The current workaround is to manually declare the function since the symbol is still available.
I'm not aware of a usable alternative. Since signal.set_wakeup_fd only allows a single fd to be set globally, it isn't usable from a library. The best alternative would probably be to poll by waking up every few hundred milliseconds.
Activity
vstinner commentedon Jan 13, 2025
The problem is that the "sigint event" should not be used in threads other than main. If we add a public function, it should return NULL in this case.
vstinner commentedon Feb 6, 2025
I found another user of this function by searching for
_PyOS_SigintEvent: