New submission from STINNER Victor <vstin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40232> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com