diff options
Diffstat (limited to 'bitbake/lib/bb/process.py')
-rw-r--r-- | bitbake/lib/bb/process.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index 05b51725f1..1aeec788c1 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
@@ -102,6 +102,10 @@ def _logged_communicate(pipe, log, input): | |||
102 | log.write(data) | 102 | log.write(data) |
103 | finally: | 103 | finally: |
104 | log.flush() | 104 | log.flush() |
105 | if pipe.stdout is not None: | ||
106 | pipe.stdout.close() | ||
107 | if pipe.stderr is not None: | ||
108 | pipe.stderr.close() | ||
105 | return ''.join(outdata), ''.join(errdata) | 109 | return ''.join(outdata), ''.join(errdata) |
106 | 110 | ||
107 | def run(cmd, input=None, log=None, **options): | 111 | def run(cmd, input=None, log=None, **options): |