diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-05-22 10:49:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 10:49:33 (GMT) |
commit | 6f94bbf77e28966fe0d789b5aa477f547ccddae9 (patch) | |
tree | 604a3dcaee662b6c6176639eca2c123c397f93da /Misc | |
parent | e95ca78fab1c9ef288fcca72da7404236ba072bd (diff) | |
download | cpython-6f94bbf77e28966fe0d789b5aa477f547ccddae9.zip cpython-6f94bbf77e28966fe0d789b5aa477f547ccddae9.tar.gz cpython-6f94bbf77e28966fe0d789b5aa477f547ccddae9.tar.bz2 |
[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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-05-16-10-07-16.gh-issue-104536.hFWD8f.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-05-16-10-07-16.gh-issue-104536.hFWD8f.rst b/Misc/NEWS.d/next/Library/2023-05-16-10-07-16.gh-issue-104536.hFWD8f.rst new file mode 100644 index 0000000..b0f5d78 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-05-16-10-07-16.gh-issue-104536.hFWD8f.rst @@ -0,0 +1,3 @@ +Fix a race condition in the internal :mod:`multiprocessing.process` cleanup +logic that could manifest as an unintended ``AttributeError`` when calling +``process.close()``. |