This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pmolina
Recipients pmolina
Date 2009-07-23.18:28:33
SpamBayes Score 1.3187238e-07
Marked as misclassified No
Message-id <1248373715.48.0.616687111663.issue6554@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2009-07-23 18:28:35pmolinasetrecipients: + pmolina
2009-07-23 18:28:35pmolinasetmessageid: <1248373715.48.0.616687111663.issue6554@psf.upfronthosting.co.za>
2009-07-23 18:28:34pmolinalinkissue6554 messages
2009-07-23 18:28:33pmolinacreate