Repository navigation
Conversation
Add a mutex which protects access to the handler map under normal access. We delebrately do not have a lock in PyErr_SetInterruptEx due to deadlock concerns.
|
This looks like a reasonable incremental fix to me. The lock protects taking a reference, with callbacks and decrefs happening after unlocking. It also leaves room to fix Could we consider |
This helps offer some partial protection for sub interpretors
regrtest's per-test timeout runs a faulthandler watchdog thread, so os.fork() warns, and CI's -W error turns the warning into an error.
Add a mutex which protects access to the handler map under normal access. We delebrately do not have a lock in PyErr_SetInterruptEx due to deadlock concerns.
This is an alternative proposal to leveraging lock free QSBR approach
signalmodule.cin free-threaded Python #161235