From: Daniel Martí Date: Wed, 9 Jul 2014 17:22:39 +0000 (+0200) Subject: Use p.wait() instead of p.communicate() X-Git-Tag: 0.2.1~14 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3d923a671850d88108e2ef48c217090d27ec0515;p=fdroidserver.git Use p.wait() instead of p.communicate() The latter calls the former anyway, and we don't need to fetch the output nor send any stdin. --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 285ffe20..663af8b1 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1681,7 +1681,7 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True): time.sleep(0.1) - p.communicate() + p.wait() result.returncode = p.returncode return result