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: