run-tests: patch over py2.4 proc.wait() race

This commit is contained in:
Matt Mackall 2013-07-16 12:44:11 -05:00
parent e4e0d4a087
commit 14f333f579

View File

@ -838,7 +838,11 @@ def run(cmd, wd, options, replacements, env):
cleanup()
raise
ret = proc.wait()
try:
ret = proc.wait()
except OSError:
# Py2.4 seems to have a race here
pass
if wifexited(ret):
ret = os.WEXITSTATUS(ret)