Merge pull request #808 from MashaSamoylova/master

[process][windows] Change access right for GetProcessTimes call
pull/824/head
Lomanic 5 years ago committed by GitHub
commit 87d6e832ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -777,7 +777,7 @@ func getProcInfo(pid int32) (*SystemProcessInformation, error) {
func getRusage(pid int32) (*windows.Rusage, error) {
var CPU windows.Rusage
c, err := windows.OpenProcess(windows.PROCESS_QUERY_INFORMATION, false, uint32(pid))
c, err := windows.OpenProcess(windows.PROCESS_QUERY_LIMITED_INFORMATION, false, uint32(pid))
if err != nil {
return nil, err
}

Loading…
Cancel
Save