from test.fork_wait import ForkWait
from test.test_support import TestSkipped, run_unittest
def wait_impl(self, cpid):
- # wait4() shouldn't hang, but some of the buildbots seem to hang
- # in the forking tests. This is an attempt to fix the problem.
- spid, status, rusage = os.wait4(cpid, os.WNOHANG)
+ spid, status, rusage = os.wait4(cpid, 0)
self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8))