Merge pull request #1428 from bsergean/master

Update arbiter.py to not leave tmp files around (fix #1327)
This commit is contained in:
Randall Leeds 2017-10-26 19:46:36 -07:00 committed by GitHub
commit a3e258f24a

View File

@ -570,6 +570,10 @@ class Arbiter(object):
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: