Blame SOURCES/00230-force-all-child-threads-to-terminate-in-TestForkInThread.patch

854cc6
diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
854cc6
index 413889a..fb312aa 100644
854cc6
--- a/Lib/test/test_thread.py
854cc6
+++ b/Lib/test/test_thread.py
854cc6
@@ -237,7 +237,12 @@ class TestForkInThread(unittest.TestCase):
854cc6
             if pid == 0: # child
854cc6
                 os.close(self.read_fd)
854cc6
                 os.write(self.write_fd, "OK")
854cc6
-                sys.exit(0)
854cc6
+                # Exiting the thread normally in the child process can leave
854cc6
+                # any additional threads (such as the one started by
854cc6
+                # importing _tkinter) still running, and this can prevent
854cc6
+                # the half-zombie child process from being cleaned up. See
854cc6
+                # Issue #26456.
854cc6
+                os._exit(0)
854cc6
             else: # parent
854cc6
                 os.close(self.write_fd)
854cc6