summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-02 16:58:44 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-02 16:58:44 +0000
commitbfdb7c455f4a9d639baf2e9bac74f79e7424462d (patch)
tree72f62fc78b0da3d8fcae10f9be092db1be507793
parentd256d0613fe1695cd598733d4d1160f7dd41daa0 (diff)
downloadimport-bfdb7c455f4a9d639baf2e9bac74f79e7424462d.tar.gz
Close stderr stdout of subprocess once exited
-rwxr-xr-xexts/pip.find_deps5
1 files changed, 4 insertions, 1 deletions
diff --git a/exts/pip.find_deps b/exts/pip.find_deps
index b59a1fc..5394f03 100755
--- a/exts/pip.find_deps
+++ b/exts/pip.find_deps
@@ -260,7 +260,10 @@ def find_runtime_deps(source, name, version=None):
logging.debug(line.rstrip())
- p.wait() # even with eof on both streams, we still wait
+ p.wait() # even with eof, wait
+
+ p.stderr.close()
+ p.stdout.close()
logging.debug('pip exited with code: %d' % p.returncode)