sim_vehicle.py: older python has no accessors for proc.status

This commit is contained in:
Peter Barker 2016-05-18 13:27:04 +10:00
parent 91e72de302
commit 53df307c2d

View File

@ -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: