]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-104536: Improve `multiprocessing.process._cleanup` logic (GH-104537) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 May 2023 10:49:33 +0000 (03:49 -0700)
committerGitHub <noreply@github.com>
Mon, 22 May 2023 10:49:33 +0000 (12:49 +0200)
commit6f94bbf77e28966fe0d789b5aa477f547ccddae9
tree604a3dcaee662b6c6176639eca2c123c397f93da
parente95ca78fab1c9ef288fcca72da7404236ba072bd
[3.11] gh-104536: Improve `multiprocessing.process._cleanup` logic (GH-104537) (#104737)

Fix a race condition in the internal `multiprocessing.process` cleanup
logic that could manifest as an unintended `AttributeError` when calling
`BaseProcess.close()`.

(cherry picked from commit ef5d00a59207a63c6d5ae0d5d44054847d1bf3b5)

Co-authored-by: Luccccifer <lukezhang764@gmail.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/multiprocessing/process.py
Misc/NEWS.d/next/Library/2023-05-16-10-07-16.gh-issue-104536.hFWD8f.rst [new file with mode: 0644]