Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2006 11:21:10 +0000
From:      Alec Berryman <alec@thened.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: denyhosts
Message-ID:  <20060222112110.GA40475@thened.net>
In-Reply-To: <43FC380E.9020808@chamonix.reportlab.co.uk>
References:  <43FC380E.9020808@chamonix.reportlab.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Robin Becker on 2006-02-22 10:08:14 +0000:

> 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. I=
s=20
> there a more freebsd way for python to find out if a given process is=20
> running?
>=20
>     if os.access(os.path.join("/proc", str(pid)), os.F_OK):
>         return pid
>     else:
>         return STATE_LOCK_EXISTS

I assume you don't have /proc mounted; see procfs(5).

--bg08WKrSYDhXBjb5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (FreeBSD)

iD8DBQFD/EkmAud/2YgchcQRAtcpAKCD7ZKAsHjPeoW4EYZv7lnLChchLgCgnZbj
FdnfbDVYZ5yjvFN/8m378tE=
=YzHz
-----END PGP SIGNATURE-----

--bg08WKrSYDhXBjb5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060222112110.GA40475>