diff options
author | Victor Stinner <vstinner@python.org> | 2021-09-27 12:20:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 12:20:31 (GMT) |
commit | a22be4943c119fecf5433d999227ff78fc2e5741 (patch) | |
tree | 061ad7b75596c8471cd94815db0240b4b17d1259 /Misc/NEWS.d/next | |
parent | 7b88f63e1dd4006b1a08b9c9f087dd13449ecc76 (diff) | |
download | cpython-a22be4943c119fecf5433d999227ff78fc2e5741.zip cpython-a22be4943c119fecf5433d999227ff78fc2e5741.tar.gz cpython-a22be4943c119fecf5433d999227ff78fc2e5741.tar.bz2 |
bpo-45274: Fix Thread._wait_for_tstate_lock() race condition (GH-28532)
Fix a race condition in the Thread.join() method of the threading
module. If the function is interrupted by a signal and the signal
handler raises an exception, make sure that the thread remains in a
consistent state to prevent a deadlock.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-09-23-22-17-26.bpo-45274.gPpa4E.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-23-22-17-26.bpo-45274.gPpa4E.rst b/Misc/NEWS.d/next/Library/2021-09-23-22-17-26.bpo-45274.gPpa4E.rst new file mode 100644 index 0000000..94d06ce --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-09-23-22-17-26.bpo-45274.gPpa4E.rst @@ -0,0 +1,5 @@ +Fix a race condition in the :meth:`Thread.join() <threading.Thread.join>` +method of the :mod:`threading` module. If the function is interrupted by a +signal and the signal handler raises an exception, make sure that the thread +remains in a consistent state to prevent a deadlock. Patch by Victor +Stinner. |