From 6c3d283363c1569c19f209ebc47c92a2e4c09b44 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 11 Jan 2017 11:30:13 -0800 Subject: [PATCH] Update arbiter.py --- gunicorn/arbiter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index e5217266a..1bfd47089 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -565,6 +565,10 @@ def spawn_worker(self): self.WORKERS[pid] = worker return pid + # Do not inherit the temporary files of other workers + for sibling in self.WORKERS.values(): + sibling.tmp.close() + # Process Child worker_pid = os.getpid() try: