diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-15 13:05:44 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-15 13:05:44 +0100 |
commit | cec43a2015da2b7cf02d7f01b719731348881ce2 (patch) | |
tree | 30181213934ed2f85717d65289bc4e06bcd57bba /scripts/pidof.py | |
parent | d03c176c0478ed96a529be103318c42fa2f0af9d (diff) | |
download | psutil-cec43a2015da2b7cf02d7f01b719731348881ce2.tar.gz |
update doc
Diffstat (limited to 'scripts/pidof.py')
-rwxr-xr-x | scripts/pidof.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pidof.py b/scripts/pidof.py index bcb8a2e6..c1042f4f 100755 --- a/scripts/pidof.py +++ b/scripts/pidof.py @@ -18,7 +18,7 @@ import sys def pidof(pgname): pids = [] - for proc in psutil.process_iter(attrs=['name', 'cmdline']): + for proc in psutil.process_iter(['name', 'cmdline']): # search for matches in the process name and cmdline if proc.info['name'] == pgname or \ proc.info['cmdline'] and proc.info['cmdline'][0] == pgname: |