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

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