Skip to content

Commit 5248cb1

Browse files
t184256pirat89
authored andcommitted
libraries.stdlib.call: close two more FDs
1 parent 0d6da94 commit 5248cb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

leapp/libraries/stdlib/call.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def _call(command, callback_raw=lambda fd, value: None, callback_linebuffered=la
202202
# Wait for the child to finish
203203
pid, status = os.wait()
204204
ep.close()
205+
os.close(stdout)
206+
os.close(stderr)
205207

206208
# The status variable is a 16 bit value, where the lower octet describes
207209
# the signal which killed the process, and the upper octet is the exit code

0 commit comments

Comments
 (0)