From 5248cb141566391471e47d6540f99b422f84d870 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Mon, 12 Aug 2024 16:23:55 +0200 Subject: [PATCH] libraries.stdlib.call: close two more FDs --- leapp/libraries/stdlib/call.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/leapp/libraries/stdlib/call.py b/leapp/libraries/stdlib/call.py index 89133d9e5..c9010aa0d 100644 --- a/leapp/libraries/stdlib/call.py +++ b/leapp/libraries/stdlib/call.py @@ -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