From a6df032674ef213d1d36acf517cce2bab793f55c Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 3 Jan 2024 12:28:18 -0700 Subject: [PATCH] JobProcesses: Ignore zombies safely Signed-off-by: Zack Cerza --- teuthology/exporter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teuthology/exporter.py b/teuthology/exporter.py index b688d4d75..017908f62 100644 --- a/teuthology/exporter.py +++ b/teuthology/exporter.py @@ -144,7 +144,10 @@ def update(self): @staticmethod def _match(proc): - cmdline = proc.cmdline() + try: + cmdline = proc.cmdline() + except psutil.ZombieProcess: + return False if not len(cmdline) > 1: return False if not cmdline[1].endswith("teuthology"):