Merge "Remove logic for psutil < 2.0"

This commit is contained in:
Zuul 2023-11-28 01:24:33 +00:00 committed by Gerrit Code Review
commit f3c941cc22

View File

@ -60,13 +60,7 @@ PHASES = ['pre-configure',
def timeout():
p = psutil.Process()
try:
# psutils version >= 2
children = list(p.children(recursive=True))
except AttributeError:
children = list(p.get_children(recursive=True))
for child in children:
for child in p.children(recursive=True):
child.kill()