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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

jQuery Ajax Render Fragments OR Whole Page -

java - Why is BlockingQueue.take() not releasing the thread? -