os.kill........

Martin Franklin martin.franklin at westgeo.com
Tue Nov 20 12:05:51 EST 2001



Hi,

I'm looking for a way of determining if a process is still running (having 
spawned it from a python app), I have come up with os.kill(PID, 0)
this will raise an exception if the process does not exist, and do nothing 
if the process does exist.  The sig of zero does not _seem_ to affect it 
(at least not on my linux box)

My question is.....  is this an OK way of doing this?  do I have any other 
_pure_ python options.....


Regards
Martin



More information about the Python-list mailing list