go-sandbox/forkexec/rlimit.go

12 lines
251 B
Go

package forkexec
import "syscall"
// RLimit is the resource limits defined by Linux setrlimit
type RLimit struct {
// Res is the resource type (e.g. syscall.RLIMIT_CPU)
Res int
// Rlim is the limit applied to that resource
Rlim syscall.Rlimit
}