]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-131788: make resource_tracker re-entrant safe (GH-131787) (#137737)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Oct 2025 04:25:14 +0000 (06:25 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Oct 2025 04:25:14 +0000 (21:25 -0700)
commit5513f6a99d3dc05b93f92c740484a607ef7c0cbf
tree6c061add6ef27ccf3baafa5887810b2b32eba436
parent32e60fa220ec096739f95485f2b62ab950d921e4
[3.14] gh-131788: make resource_tracker re-entrant safe (GH-131787) (#137737)

gh-131788: make resource_tracker re-entrant safe (GH-131787)

* make resource_tracker re-entrant safe
* Update Lib/multiprocessing/resource_tracker.py
* trim trailing whitespace
* use f-string and args = [x, *y, z]
* raise self._reentrant_call_error

---------
(cherry picked from commit f24a012350f71141648cbd61081a25a458dd7fff)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Lib/multiprocessing/resource_tracker.py
Misc/NEWS.d/next/Library/2025-03-27-08-13-32.gh-issue-131788.0RWiFc.rst [new file with mode: 0644]