[New-bugs-announce] [issue40232] PyOS_AfterFork_Child() should use _PyThread_at_fork_reinit()

STINNER Victor report at bugs.python.org
Wed Apr 8 17:43:23 EDT 2020


New submission from STINNER Victor <vstinner at python.org>:

In bpo-40089, I added _PyThread_at_fork_reinit() function to reinitialize a lock after a lock. PyOS_AfterFork_Child() should use it rather than creating new locks. For example, currently _PyEval_ReInitThreads() calls:

    pending->lock = PyThread_allocate_lock();

----------
components: Interpreter Core
messages: 366015
nosy: vstinner
priority: normal
severity: normal
status: open
title: PyOS_AfterFork_Child() should use _PyThread_at_fork_reinit()
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40232>
_______________________________________


More information about the New-bugs-announce mailing list