]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104536: Improve `multiprocessing.process._cleanup` logic (#104537)
authorLuccccifer <lukezhang764@gmail.com>
Mon, 22 May 2023 03:48:57 +0000 (11:48 +0800)
committerGitHub <noreply@github.com>
Mon, 22 May 2023 03:48:57 +0000 (03:48 +0000)
commitef5d00a59207a63c6d5ae0d5d44054847d1bf3b5
tree5256f13fde2d7dee7ccc17fc64df6abf62ef626c
parentb9c807a260f63284f16e25b5e98e18191f61a05f
gh-104536: Improve `multiprocessing.process._cleanup` logic (#104537)

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

---------

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]