denyhosts
Alec Berryman
alec at thened.net
Wed Feb 22 03:21:12 PST 2006
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. 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
I assume you don't have /proc mounted; see procfs(5).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060222/ad6dd7b6/attachment.bin
More information about the freebsd-questions
mailing list