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

[tor-commits] [stem/master] Fixed Method Name



commit debc483b372bd396e625deca55161dda4e290b70
Author: icodemachine <gauthamnekk@xxxxxxxxx>
Date:   Sat Feb 14 12:25:21 2015 +0530

    Fixed Method Name
---
 stem/util/system.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/util/system.py b/stem/util/system.py
index 47c6767..ea8d8a1 100644
--- a/stem/util/system.py
+++ b/stem/util/system.py
@@ -79,7 +79,7 @@ GET_PID_BY_NAME_PIDOF = 'pidof %s'
 GET_PID_BY_NAME_PS_LINUX = 'ps -o pid -C %s'
 GET_PID_BY_NAME_PS_BSD = 'ps axc'
 GET_PID_BY_NAME_LSOF = 'lsof -tc %s'
-GET_PID_BY_NAME_NETSTAT_WINDOWS = 'tasklist | findstr %s.exe'
+GET_PID_BY_NAME_TASKLIST = 'tasklist | findstr %s.exe'
 GET_PID_BY_PORT_NETSTAT = 'netstat -npltu'
 GET_PID_BY_PORT_SOCKSTAT = 'sockstat -4l -P tcp -p %s'
 GET_PID_BY_PORT_LSOF = 'lsof -wnP -iTCP -sTCP:LISTEN'
@@ -446,7 +446,7 @@ def pid_by_name(process_name, multiple = False):
     if process_name.find(".exe") == -1:
 	  process_name = process_name + '.exe'
 	  
-    command = GET_PID_BY_NAME_NETSTAT_WINDOWS % process_name
+    command = GET_PID_BY_NAME_TASKLIST % process_name
     process_ids = []
 	
     try:



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