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).
pgpHzCq0PvJbc.pgp
Description: PGP signature