denyhosts

Robin Becker robin at reportlab.com
Wed Feb 22 02:08:15 PST 2006


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


More information about the freebsd-questions mailing list