-
Type:
Bug
-
Status: Closed
-
Priority:
Major - P3
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.1.2
-
Component/s: Testing Infrastructure
-
Labels:None
-
Backwards Compatibility:Fully Compatible
-
Operating System:ALL
-
Backport Requested:v4.0, v3.6
-
Sprint:TIG 2018-08-27
-
Linked BF Score:30
-
Story Points:1
It's possible then when iterating over a list of processes that the process could finish before it's accessed:
for proc in psutil.process_iter():
|
if proc.name() == self.name:
|
self.pids.append(proc.pid)
|
An additional check should be added
if psutil.pid_exists(proc.pid) and proc.name() == self.name
|
- related to
-
SERVER-37125 Powercycle should ignore a process reference if it no longer exists
-
- Open
-