Date: Wed, 22 Feb 2006 10:08:14 +0000 From: Robin Becker <robin@reportlab.com> To: freebsd-questions@freebsd.org Subject: denyhosts Message-ID: <43FC380E.9020808@chamonix.reportlab.co.uk>
next in thread | raw e-mail | index | archive | help
I'm trying out the denyhosts port; it starts up and performs as expected,
but it won't recognize a running instance as this python if test fails. Is there
a more freebsd way for python to find out if a given process is running?
if os.access(os.path.join("/proc", str(pid)), os.F_OK):
return pid
else:
return STATE_LOCK_EXISTS
--
Robin Becker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43FC380E.9020808>
