Merge pull request #979 from ajacoutot/openbsd-process

process: unbreak build on OpenBSD
pull/980/head
shirou 5 years ago committed by GitHub
commit 9ffeb8d368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,7 +176,12 @@ func (p *Process) GroupsWithContext(ctx context.Context) ([]int32, error) {
return nil, err
}
return k.Groups, nil
groups := make([]int32, k.Ngroups)
for i := int16(0); i < k.Ngroups; i++ {
groups[i] = int32(k.Groups[i])
}
return groups, nil
}
func (p *Process) TerminalWithContext(ctx context.Context) (string, error) {

Loading…
Cancel
Save