mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
12 lines
251 B
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
|
|
}
|