Message90850
I couldn't find anything like os.pid_exists() in Python 2.5/2.6, neither
in bugs.python.org (this *could* be a dupe)
Do we have something like that?
Right now I'm doing this:
try:
os.kill(int(pid), 0)
return True
except OSError:
return False
I'd love to do the same without catching an exception (they're
expensive!), maybe in C?
Thanks! |
|
Date |
User |
Action |
Args |
2009-07-23 18:28:35 | pmolina | set | recipients:
+ pmolina |
2009-07-23 18:28:35 | pmolina | set | messageid: <1248373715.48.0.616687111663.issue6554@psf.upfronthosting.co.za> |
2009-07-23 18:28:34 | pmolina | link | issue6554 messages |
2009-07-23 18:28:33 | pmolina | create | |
|