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 -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -