diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-02 16:58:44 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-02 16:58:44 +0000 |
commit | bfdb7c455f4a9d639baf2e9bac74f79e7424462d (patch) | |
tree | 72f62fc78b0da3d8fcae10f9be092db1be507793 | |
parent | d256d0613fe1695cd598733d4d1160f7dd41daa0 (diff) | |
download | import-bfdb7c455f4a9d639baf2e9bac74f79e7424462d.tar.gz |
Close stderr stdout of subprocess once exited
-rwxr-xr-x | exts/pip.find_deps | 5 |
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) |