close more fds
This commit is contained in:
parent
79c5d948b5
commit
5cfe392e22
1 changed files with 1 additions and 0 deletions
|
@ -522,6 +522,7 @@ class Item(models.Model):
|
||||||
cmd, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'), close_fds=True)
|
cmd, stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'), close_fds=True)
|
||||||
p.wait()
|
p.wait()
|
||||||
os.unlink(tmp_output_txt)
|
os.unlink(tmp_output_txt)
|
||||||
|
os.close(fd)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue