]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-136003: Skip non-daemon threads when exceptions occur during finalization (GH...
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 18 Sep 2025 20:04:01 +0000 (16:04 -0400)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 20:04:01 +0000 (16:04 -0400)
commit3eec8977528dbbd22f9c0873930507fd97053843
treef603cb5b438b4c975e6fcd127ea9acd5e310fc01
parent293b05c09b4f4bd169086e3924162104254c7766
gh-136003: Skip non-daemon threads when exceptions occur during finalization (GH-139129)

During finalization, we need to mark all non-daemon threads as daemon to quickly shut down threads when sending CTRL^C to the process. This was a minor regression from GH-136004.
Lib/test/test_threading.py
Modules/_threadmodule.c
Python/pylifecycle.c