[tor-commits] [arm/release] fix: tor process detection limited to our user

atagar at torproject.org atagar at torproject.org
Sun Sep 25 21:38:31 UTC 2011


commit 795f5a061f2960cbb0659a6e5f796423e7873187
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Sep 21 09:01:12 2011 -0700

    fix: tor process detection limited to our user
    
    When checking to see if a tor process is already running I forgot the '-A' flag
    for ps, limiting the check to our user.
---
 src/util/torTools.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/torTools.py b/src/util/torTools.py
index f6d9d86..8c7a1ed 100644
--- a/src/util/torTools.py
+++ b/src/util/torTools.py
@@ -352,7 +352,7 @@ def isTorRunning():
   """
   
   # suggestions welcome for making this more reliable
-  commandResults = sysTools.call("ps co command")
+  commandResults = sysTools.call("ps -A co command")
   if commandResults:
     for cmd in commandResults:
       if cmd.strip() == "tor": return True





More information about the tor-commits mailing list