summaryrefslogtreecommitdiff
path: root/psutil/_psosx.py
diff options
context:
space:
mode:
authorAlexander Hasselhuhn <alexander.hasselhuhn@tu-dortmund.de>2017-04-25 22:41:45 +0200
committerAlexander Hasselhuhn <alexander.hasselhuhn@tu-dortmund.de>2017-04-25 22:41:45 +0200
commita9e3effa73a31c6ca77356964f0563f8531e4467 (patch)
tree0545e6c543cf701b8426bff3600b0332339a07d8 /psutil/_psosx.py
parent77268aef6ae11408e41cd51bea2be19aa551f625 (diff)
downloadpsutil-a9e3effa73a31c6ca77356964f0563f8531e4467.tar.gz
make users() include pid into suser tuple
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r--psutil/_psosx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psosx.py b/psutil/_psosx.py
index f780d459..f5851b81 100644
--- a/psutil/_psosx.py
+++ b/psutil/_psosx.py
@@ -264,12 +264,12 @@ def users():
retlist = []
rawlist = cext.users()
for item in rawlist:
- user, tty, hostname, tstamp = item
+ user, tty, hostname, tstamp, pid = item
if tty == '~':
continue # reboot or shutdown
if not tstamp:
continue
- nt = _common.suser(user, tty or None, hostname or None, tstamp)
+ nt = _common.suser(user, tty or None, hostname or None, tstamp, pid)
retlist.append(nt)
return retlist