diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 81d08820..7ddd4ab8 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -570,6 +570,10 @@ class Arbiter(object): 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: