[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 795f5a061f2960cbb0659a6e5f796423e7873187
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits