[tor-commits] [arm/release] fix: minor commenting correction on lsof results

atagar at torproject.org atagar at torproject.org
Sun Jul 17 06:08:16 UTC 2011


commit e4bf17a30fbeaa24f6980476ceb8e1a51ad0ba62
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Apr 26 08:55:19 2011 -0700

    fix: minor commenting correction on lsof results
    
    A previous commit noted that lsof queries return itself in the results, so
    correcting the comment on this.
---
 src/util/torTools.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/torTools.py b/src/util/torTools.py
index f4a29af..5d8ffd8 100644
--- a/src/util/torTools.py
+++ b/src/util/torTools.py
@@ -225,8 +225,8 @@ def getPid(controlPort=9051, pidFilePath=None):
   try:
     results = sysTools.call("lsof -wnPi | egrep \"^tor.*:%i\"" % controlPort)
     
-    # This can result in multiple entries with the same pid (maybe from the
-    # query itself?). Checking all lines to see if they have the same pid.
+    # This can result in multiple entries with the same pid (from the query
+    # itself). Checking all lines to see if they're in agreement about the pid.
     
     if results:
       pid = ""





More information about the tor-commits mailing list