1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

add segfault detection to TQM

* prevents indefinite hangs when a worker segfaults
This commit is contained in:
Matt Davis 2017-05-16 17:32:31 -07:00 committed by Brian Coca
parent ba3a0e8e34
commit 569377e951

View file

@ -334,7 +334,7 @@ class TaskQueueManager:
defunct = False defunct = False
for idx,x in enumerate(self._workers): for idx,x in enumerate(self._workers):
if hasattr(x[0], 'exitcode'): if hasattr(x[0], 'exitcode'):
if x[0].exitcode in [-9, -15]: if x[0].exitcode in [-9, -11, -15]:
defunct = True defunct = True
return defunct return defunct