From 5cfe392e22936f1183a47e0edcf190e1e6ab4132 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 3 Jan 2022 12:37:02 +0100 Subject: [PATCH] close more fds --- pandora/item/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 6279948d..31d0631c 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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