mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 05:20:08 +01:00
Fixes issue #1553: Replace wait with communicate to avoid potential deadlock.
This commit is contained in:
2
build.py
2
build.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user