From 00bec8e8123a9da65a4523dc3dee06b2971d0596 Mon Sep 17 00:00:00 2001 From: Robin Van de Merghel Date: Thu, 8 May 2025 09:37:24 +0200 Subject: [PATCH] fix: Fixed the PS to use ppid instead of g --- Pilot/pilotTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pilot/pilotTools.py b/Pilot/pilotTools.py index 8afe0f62..7ac99e65 100644 --- a/Pilot/pilotTools.py +++ b/Pilot/pilotTools.py @@ -832,7 +832,7 @@ def exitWithError(self, errorCode): self.log.info("List of child processes of current PID:") retCode, _outData = self.executeAndGetOutput( - "ps --forest -o pid,%%cpu,%%mem,tty,stat,time,cmd -g %d" % os.getpid() + "ps --forest -o pid,%%cpu,%%mem,tty,stat,time,cmd --ppid %d" % os.getpid() ) if retCode: self.log.error("Failed to issue ps [ERROR %d] " % retCode)