Quellcode durchsuchen

Reaper investigation (#2832)

* Reaper update

Moved process killing to the TFBReaper.

* Added more ps checking
Mike Smith vor 8 Jahren
Ursprung
Commit
90b8991c84
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      toolset/benchmark/benchmarker.py

+ 2 - 2
toolset/benchmark/benchmarker.py

@@ -579,7 +579,7 @@ class Benchmarker:
                 ##########################
                 # Capturing PIDs started
                 ##########################
-                startedPIDs = subprocess.check_output(['ps -o pid,ppid,comm -u $(whoami)'], shell=True)
+                startedPIDs = subprocess.check_output(['ps -aux'], shell=True)
 
                 ##########################
                 # Verify URLs
@@ -620,7 +620,7 @@ class Benchmarker:
                     time.sleep(5)
                     if self.__is_port_bound(test.port):
                         leftovers = "  PID  PPID COMMAND" + os.linesep
-                        for line in subprocess.check_output(['ps -o pid,ppid,comm -u $(whoami)'], shell=True).splitlines():
+                        for line in subprocess.check_output(['ps -aux'], shell=True).splitlines():
                             if line not in startedPIDs:
                                 leftovers += line + os.linesep