Skip to content

Commit

Permalink
Update arbiter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bsergean authored Jan 11, 2017
1 parent 3f9eace commit 6c3d283
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gunicorn/arbiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6c3d283

Please sign in to comment.