Fixes issue #1553: Replace wait with communicate to avoid potential deadlock.

This commit is contained in:
Per A. Brodtkorb
2020-03-23 11:16:33 +01:00
parent ef1edacc20
commit 95d1df0383

View File

@@ -594,7 +594,7 @@ def getTool(cmdName, version, MD5, envVar, platformBinary, linuxBits=False):
try:
p = subprocess.Popen([cmd, '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
p.wait()
p.communicate()
except OSError as e:
_error_msg('Could not execute %s, got "%s"' % (cmd, e))
sys.exit(1)