sim_vehicle.py: older python has no accessors for proc.status
This commit is contained in:
parent
91e72de302
commit
53df307c2d
@ -114,9 +114,9 @@ def kill_tasks():
|
||||
|
||||
import psutil
|
||||
for proc in psutil.process_iter():
|
||||
if proc.status() == psutil.STATUS_ZOMBIE:
|
||||
if proc.status == psutil.STATUS_ZOMBIE:
|
||||
continue
|
||||
if proc.name() in victim_names:
|
||||
if proc.name in victim_names:
|
||||
proc.kill()
|
||||
|
||||
# clean up processes at exit:
|
||||
|
Loading…
Reference in New Issue
Block a user