Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-04-13 12:39:12 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-13 12:39:12 +0200
commitea4394262f1c88966efb9977ea0cf5e8d2da2b1f (patch)
treecde2067284b94e03cc903d86f1b1c6f8c71fbf0b /archinstall
parent9295f38134aa4683a95e2a1a2a081694eda76c98 (diff)
Closing forked process PID in order to close any ramining open file handles.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/general.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index f2a714e7..65a9610c 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -262,6 +262,11 @@ class sys_command():#Thread):
with open(f'{self.cwd}/trace.log', 'wb') as fh:
fh.write(self.trace_log)
+ try:
+ os.close(child_fd)
+ except:
+ pass
+
def prerequisite_check():
if not os.path.isdir("/sys/firmware/efi"):