Skip to content

Commit

Permalink
Merge pull request #1428 from bsergean/master
Browse files Browse the repository at this point in the history
Update arbiter.py to not leave tmp files around (fix #1327)
  • Loading branch information
tilgovi authored Oct 27, 2017
2 parents 5d4f885 + 6c3d283 commit a3e258f
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 @@ -570,6 +570,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 a3e258f

Please sign in to comment.