summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-11-28 00:58:02 (GMT)
committerGitHub <noreply@github.com>2023-11-28 00:58:02 (GMT)
commit82ae5a609d9a2c0ff2384527a18ff1caf7410052 (patch)
treecff9bfd9647110dca841fdac8668b6f8a0ebf503 /Misc
parentdaf9ff99f9909c72e002746e51cbb9051ee0a1b6 (diff)
downloadcpython-82ae5a609d9a2c0ff2384527a18ff1caf7410052.zip
cpython-82ae5a609d9a2c0ff2384527a18ff1caf7410052.tar.gz
cpython-82ae5a609d9a2c0ff2384527a18ff1caf7410052.tar.bz2
[3.12] gh-109793: Allow Switching Interpreters During Finalization (gh-109794) (gh-110705)
Essentially, we should check the thread ID rather than the thread state pointer.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-09-25-09-24-10.gh-issue-109793.zFQBkv.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-09-25-09-24-10.gh-issue-109793.zFQBkv.rst b/Misc/NEWS.d/next/Core and Builtins/2023-09-25-09-24-10.gh-issue-109793.zFQBkv.rst
new file mode 100644
index 0000000..d2dc4c8
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-09-25-09-24-10.gh-issue-109793.zFQBkv.rst
@@ -0,0 +1,4 @@
+The main thread no longer exits prematurely when a subinterpreter
+is cleaned up during runtime finalization. The bug was a problem
+particularly because, when triggered, the Python process would
+always return with a 0 exitcode, even if it failed.