changeset 183:748c232c0af3

update to process examiner
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 24 Nov 2011 14:41:09 -0800
parents f9863f733344
children 434c65593612
files python/process.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/process.py	Tue Nov 08 19:05:21 2011 -0800
+++ b/python/process.py	Thu Nov 24 14:41:09 2011 -0800
@@ -24,7 +24,7 @@
         retval.append(process_dict)
     return retval
 
-def running_processes(name, defunct=True):
+def running_processes(name, psarg='axwww', defunct=True):
     """
     returns a list of 2-tuples of running processes:
     (pid, ['path/to/executable', 'args', '...'])
@@ -32,7 +32,7 @@
      - defunct: whether to return defunct processes
     """
     retval = []
-    for process in ps():
+    for process in ps(psarg):
         command = process['COMMAND']
         command = shlex.split(command)
         if command[-1] == '<defunct>':