# HG changeset patch # User Jeff Hammel # Date 1322174469 28800 # Node ID 748c232c0af3c721f2f1a218f370a25ab2b2f502 # Parent f9863f73334475f3aa099340b42f989d9659c719 update to process examiner diff -r f9863f733344 -r 748c232c0af3 python/process.py --- 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] == '':