close more fds

This commit is contained in:
j 2022-01-03 12:37:02 +01:00
parent 79c5d948b5
commit 5cfe392e22
1 changed files with 1 additions and 0 deletions

View File

@ -522,6 +522,7 @@ class Item(models.Model):
cmd, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'), close_fds=True)
p.wait()
os.unlink(tmp_output_txt)
os.close(fd)
return True
else:
return None