package sys

import "github.com/containerd/containerd/sys"

Index

Constants

const OOMScoreMaxKillable = -999

OOMScoreMaxKillable is the maximum score keeping the process killable by the oom killer

Functions

func CreateUnixSocket

func CreateUnixSocket(path string) (net.Listener, error)

CreateUnixSocket creates a unix socket and returns the listener

func GetLocalListener

func GetLocalListener(path string, uid, gid int) (net.Listener, error)

GetLocalListener returns a listerner out of a unix socket.

func GetOpenFds

func GetOpenFds(pid int) (int, error)

GetOpenFds returns the number of open fds for the process provided by pid

func SetOOMScore

func SetOOMScore(pid, score int) error

SetOOMScore sets the oom score for the provided pid

Types

type Exit

type Exit struct {
	Pid    int
	Status int
}

Exit is the wait4 information from an exited process

func Reap

func Reap(wait bool) (exits []Exit, err error)

Reap reaps all child processes for the calling process and returns their exit information

Source Files

fds.go oom_unix.go reaper.go socket_unix.go

Version
v1.0.2-rc.1
Published
Feb 6, 2018
Platform
js/wasm
Imports
8 packages
Last checked
1 hour ago

Tools for package owners.