From 95d1df0383dc412d14672c8ec82d10685f8f3e51 Mon Sep 17 00:00:00 2001 From: "Per A. Brodtkorb" Date: Mon, 23 Mar 2020 11:16:33 +0100 Subject: [PATCH] Fixes issue #1553: Replace wait with communicate to avoid potential deadlock. --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index c2ff1f72..426af502 100755 --- a/build.py +++ b/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)