New submission from STINNER Victor <vstin...@python.org>:
Currently, _ResourceSharer._after_fork() of multiprocessing.resource_sharer creates new locks and leak old locks on purpose. This method can benefit of the newly added _at_fork_reinit() method added by bpo-40089. Queue._after_fork() could also call self._notempty._at_fork_reinit(). Also: ForkAwareThreadLock could reinitializes its lock. ---------- components: Library (Lib) messages: 365957 nosy: vstinner priority: normal severity: normal status: open title: Use new _at_fork_reinit() lock method in multiprocessing versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40221> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com