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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -