You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should reflect os.getresuid() [1] and os.getresgid() [2] Python functions
but in a per-process fashion, and return a named tuple as such:
>>> p = psutil.Process(os.getpid)
>>> p.getresuid()
user(real=1000, effective=1000, saved=1000)
>>> p.getresgid()
group(real=1000, effective=1000, saved=1000)
This should be provided for UNIX systems only and raise AttributeError on Windows.
Not sure what to do with current "uid" and "gid" properties.
It probably makes sense to deprecate them.
[1] http://docs.python.org/library/os.html#os.getresuid [2]
http://docs.python.org/library/os.html#os.getresgid
Implemented on Linux in r835 .
I decided to provide this as "uids" and "gids" properties as they're easier to
type/remember than "getresuid" and "getresgid".
From g.rodola on November 22, 2010 13:29:10
Original issue: http://code.google.com/p/psutil/issues/detail?id=137
The text was updated successfully, but these errors were encountered: