From 2198f48f549a236e0b869e44d0335de849d89773 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 18 Aug 2015 03:46:20 -0400 Subject: [PATCH] changed check to avoid OS X broken sem_getvalue() fixes #11988 --- lib/ansible/executor/process/result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/process/result.py b/lib/ansible/executor/process/result.py index 75d6da376a..c7027412ff 100644 --- a/lib/ansible/executor/process/result.py +++ b/lib/ansible/executor/process/result.py @@ -72,7 +72,7 @@ class ResultProcess(multiprocessing.Process): self._cur_worker = 0 try: - if rslt_q.qsize() > 0: + if not rslt_q.empty(): debug("worker %d has data to read" % self._cur_worker) result = rslt_q.get() debug("got a result from worker %d: %s" % (self._cur_worker, result))