mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1428 from bsergean/master
Update arbiter.py to not leave tmp files around (fix #1327)
This commit is contained in:
commit
a3e258f24a
@ -570,6 +570,10 @@ class Arbiter(object):
|
|||||||
self.WORKERS[pid] = worker
|
self.WORKERS[pid] = worker
|
||||||
return pid
|
return pid
|
||||||
|
|
||||||
|
# Do not inherit the temporary files of other workers
|
||||||
|
for sibling in self.WORKERS.values():
|
||||||
|
sibling.tmp.close()
|
||||||
|
|
||||||
# Process Child
|
# Process Child
|
||||||
worker.pid = os.getpid()
|
worker.pid = os.getpid()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user