python - How to get process status using pid? -


if known process's pid, how can tell if process zombie using python ?

you use status feature psutils:

import psutil p = psutil.process(the_pid_you_want) if p.status == psutil.status_zombie:     .... 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -