make sure tempfile of workers is removed.

This commit is contained in:
Benoit Chesneau 2010-02-16 15:52:08 +01:00
parent 95f6ce5618
commit 951c701a32

View File

@ -354,8 +354,9 @@ class Arbiter(object):
except OSError, e:
if e.errno == errno.ESRCH:
worker = self.WORKERS.pop(pid)
try:
worker.tmp.close()
except:
pass
raise
finally:
try:
worker.tmp.close()
except:
pass