best way to check if pid is dead?

bukzor workitharder at gmail.com
Wed May 21 15:02:09 EDT 2008


Does anyone have a pythonic way to check if a process is dead, given
the pid?

This is the function I'm using is quite OS dependent. A good candidate
might be "try: kill(pid)", since it throws an exception if the pid is
dead, but that sends a signal which might interfere with the process.

Thanks.
--Buck



More information about the Python-list mailing list