Commit 1460ce5a authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-31258: test_signal: call waitpid() to prevent zombie process (#3183)

parent cce1cb91
......@@ -185,6 +185,9 @@ class InterProcessSignalTests(unittest.TestCase):
self.fail('Test deadlocked after %d seconds.' %
self.MAX_DURATION)
# read the exit status to not leak a zombie process
os.waitpid(child, 0)
@unittest.skipIf(sys.platform == "win32", "Not valid on Windows")
class BasicSignalTests(unittest.TestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment