package sys
import "github.com/containerd/containerd/sys"
Index ¶
- Constants
- func CreateUnixSocket(path string) (net.Listener, error)
- func GetLocalListener(path string, uid, gid int) (net.Listener, error)
- func SetOOMScore(pid, score int) error
- func StatAtime(st *syscall.Stat_t) syscall.Timespec
- func StatCtime(st *syscall.Stat_t) syscall.Timespec
- func StatMtime(st *syscall.Stat_t) syscall.Timespec
- type Exit
Constants ¶
const OOMScoreMaxKillable = -999
OOMScoreMaxKillable is the maximum score keeping the process killable by the oom killer
Functions ¶
func CreateUnixSocket ¶
CreateUnixSocket creates a unix socket and returns the listener
func GetLocalListener ¶
GetLocalListener returns a listerner out of a unix socket.
func SetOOMScore ¶
SetOOMScore sets the oom score for the provided pid
func StatAtime ¶
StatAtime returns the access time from a stat struct
func StatCtime ¶
StatCtime returns the created time from a stat struct
func StatMtime ¶
StatMtime returns the modified time from a stat struct
Types ¶
type Exit ¶
Exit is the wait4 information from an exited process
func Reap ¶
Reap reaps all child processes for the calling process and returns their exit information
Source Files ¶
oom_unix.go reaper.go socket_unix.go stat_bsd.go
- Version
- v1.0.3
- Published
- Apr 2, 2018
- Platform
- darwin/amd64
- Imports
- 9 packages
- Last checked
- 8 minutes ago –
Tools for package owners.