Closed giampaolo closed 10 years ago
From jlo...@gmail.com on January 27, 2010 11:24:54
Summary: Process.groupname doesn't work on Windows 7
Status: Accepted
From billiej...@gmail.com on February 10, 2010 12:10:22
I solved the hanging problem in r475 . NetUserGetLocalGroups now returns immediately
altough an empty string is still returned.
From billiej...@gmail.com on February 10, 2010 12:10:56
More progresses: there was no error handling for NetUserGetLocalGroups.
I checked its returning value and used PyErr_SetFromWindowsErr() ( r476 ) and now a
WindowsError exception is raised instead of having an empty string in return.
By doing some more dubbing I discovered that the real culprit is get_proc_username()
function which returns a wrong username (in my case "Administrators", while the user
owning the process is "giampaolo") so that is why get_proc_groupname() is currently
failing.
From billiej...@gmail.com on February 10, 2010 12:11:16
Blockedon: 63
From billiej...@gmail.com on February 17, 2010 11:41:42
A comment related to this issue can be found here:
https://code.google.com/p/psutil/issues/detail?id=14&can=1&colspec=ID%20Summary%20Type%20Opsys%20Status%20Milestone%20Opened%20Owner%20Progress#c20
From billiej...@gmail.com on February 17, 2010 11:46:39
We decided to remove groupname functionnality.
Status: WontFix
From billiej...@gmail.com on January 26, 2010 23:35:35
Original issue: http://code.google.com/p/psutil/issues/detail?id=70