Closing forked process PID in order to close any ramining open file handles.
This commit is contained in:
parent
9295f38134
commit
ea4394262f
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue