From 3798db45881651c2dc7cc973bac5634b2dbbda4c Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 20 May 2016 12:37:50 +0200 Subject: [PATCH] [backend] Fix zombie process detection --- beat/web/backend/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/backend/models.py b/beat/web/backend/models.py index 86eb99716..2c4265e4c 100644 --- a/beat/web/backend/models.py +++ b/beat/web/backend/models.py @@ -171,7 +171,7 @@ def _cleanup_zombies(): '''Cleans-up eventual zombie subprocesses launched by the worker''' for child in psutil.Process().children(recursive=True): - if child.status == psutil.STATUS_ZOMBIE: + if child.status() == psutil.STATUS_ZOMBIE: child.wait() -- GitLab