From 569377e95105063c96bee55f859ac4df286904b5 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Tue, 16 May 2017 17:32:31 -0700 Subject: [PATCH] add segfault detection to TQM * prevents indefinite hangs when a worker segfaults --- lib/ansible/executor/task_queue_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index 745889ac596..252b4946af0 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -334,7 +334,7 @@ class TaskQueueManager: defunct = False for idx,x in enumerate(self._workers): if hasattr(x[0], 'exitcode'): - if x[0].exitcode in [-9, -15]: + if x[0].exitcode in [-9, -11, -15]: defunct = True return defunct