merge the end_fd comment fix and explicit wait() for the child.

This commit is contained in:
Gregory P. Smith 2014-06-01 13:47:34 -07:00
commit 45f31d1492
2 changed files with 3 additions and 3 deletions

View file

@ -1966,7 +1966,7 @@ class POSIXProcessTestCase(BaseTestCase):
import subprocess, sys
subprocess.Popen([sys.executable, {fd_status!r}] +
[str(x) for x in range({max_fd})],
close_fds=True)
close_fds=True).wait()
""".format(fd_status=fd_status, max_fd=max_fd_open+1))],
stdout=subprocess.PIPE, close_fds=False)
finally: