Closing forked process PID in order to close any ramining open file handles.

This commit is contained in:
Anton Hvornum 2021-04-13 12:39:12 +02:00
parent 9295f38134
commit ea4394262f
1 changed files with 5 additions and 0 deletions

View File

@ -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"):