diff options
| author | Alexander Hasselhuhn <alexander.hasselhuhn@tu-dortmund.de> | 2017-04-25 22:41:45 +0200 |
|---|---|---|
| committer | Alexander Hasselhuhn <alexander.hasselhuhn@tu-dortmund.de> | 2017-04-25 22:41:45 +0200 |
| commit | a9e3effa73a31c6ca77356964f0563f8531e4467 (patch) | |
| tree | 0545e6c543cf701b8426bff3600b0332339a07d8 /psutil/_psosx.py | |
| parent | 77268aef6ae11408e41cd51bea2be19aa551f625 (diff) | |
| download | psutil-a9e3effa73a31c6ca77356964f0563f8531e4467.tar.gz | |
make users() include pid into suser tuple
Diffstat (limited to 'psutil/_psosx.py')
| -rw-r--r-- | psutil/_psosx.py | 4 |
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 |
