check if the parent is alive

This commit is contained in:
benoitc 2014-12-21 09:41:09 +01:00
parent 1f92511430
commit b1bde15113

View File

@ -194,6 +194,9 @@ class ThreadWorker(base.Worker):
callback = key.data callback = key.data
callback(key.fileobj) callback(key.fileobj)
if not self.is_parent_alive():
break
# hanle keepalive timeouts # hanle keepalive timeouts
self.murder_keepalived() self.murder_keepalived()