Skip to content

Commit

Permalink
JobProcesses: Ignore zombies safely
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Jan 3, 2024
1 parent 7c8fc5c commit a6df032
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion teuthology/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit a6df032

Please sign in to comment.