[tor-commits] [arm/release] Restricting OpenBSD to lsof connection resolution

atagar at torproject.org atagar at torproject.org
Sun Apr 29 04:00:58 UTC 2012


commit b9446bdbb6df24fb0f042852a42e4d548c993263
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Oct 11 09:10:40 2011 -0700

    Restricting OpenBSD to lsof connection resolution
    
    Linux resolvers naturally fail on OpenBSD. I'm not sure if the bsd variants of
    procstat/sockstat are installable (they're definitely not around by default) so
    falling back ot only lsof like macs. Thanks to a test system from Jordi Espasa
    Clofent.
---
 src/util/connections.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/connections.py b/src/util/connections.py
index 9350cb8..250b113 100644
--- a/src/util/connections.py
+++ b/src/util/connections.py
@@ -337,7 +337,7 @@ def getSystemResolvers(osType = None):
   
   if osType == "FreeBSD":
     resolvers = [Resolver.BSD_SOCKSTAT, Resolver.BSD_PROCSTAT, Resolver.LSOF]
-  elif osType == "Darwin":
+  elif osType in ("OpenBSD", "Darwin"):
     resolvers = [Resolver.LSOF]
   else:
     resolvers = [Resolver.NETSTAT, Resolver.SOCKSTAT, Resolver.LSOF, Resolver.SS]





More information about the tor-commits mailing list