log : added timeout to avoid deadlocks on daemon join
This commit is contained in:
parent
468a6431f9
commit
ad16830f71
1 changed files with 1 additions and 1 deletions
|
@ -218,5 +218,5 @@ def __exit__(self, exc_type, exception, traceback):
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
"""Closes the pipes and joins the daemon"""
|
"""Closes the pipes and joins the daemon"""
|
||||||
os.close(self.write)
|
os.close(self.write)
|
||||||
self.p.join()
|
self.p.join(60.0) # 1 minute to join the daemonic child
|
||||||
os.close(self.read)
|
os.close(self.read)
|
||||||
|
|
Loading…
Reference in a new issue