-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
v4.0, v3.6
-
TIG 2018-08-27
-
46
-
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
- Closed