Skip to content

Commit

Permalink
libraries.stdlib.call: close two more FDs
Browse files Browse the repository at this point in the history
  • Loading branch information
t184256 authored and pirat89 committed Aug 12, 2024
1 parent 0d6da94 commit 5248cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leapp/libraries/stdlib/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def _call(command, callback_raw=lambda fd, value: None, callback_linebuffered=la
# Wait for the child to finish
pid, status = os.wait()
ep.close()
os.close(stdout)
os.close(stderr)

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

0 comments on commit 5248cb1

Please sign in to comment.