mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
make sure tempfile of workers is removed.
This commit is contained in:
parent
95f6ce5618
commit
951c701a32
@ -354,8 +354,9 @@ class Arbiter(object):
|
|||||||
except OSError, e:
|
except OSError, e:
|
||||||
if e.errno == errno.ESRCH:
|
if e.errno == errno.ESRCH:
|
||||||
worker = self.WORKERS.pop(pid)
|
worker = self.WORKERS.pop(pid)
|
||||||
try:
|
|
||||||
worker.tmp.close()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
raise
|
raise
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
worker.tmp.close()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user