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

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