package osutils

import "github.com/containerd/containerd/osutils"

Package osutils provide access to the Get Child and Set Child prctl flags. See http://man7.org/linux/man-pages/man2/prctl.2.html

Index

Functions

func GetOpenFds

func GetOpenFds(pid int) (int, error)

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

func GetSubreaper

func GetSubreaper() (int, error)

GetSubreaper returns the subreaper setting for the calling process

func SetSubreaper

func SetSubreaper(i int) error

SetSubreaper sets the value i as the subreaper setting for the calling process

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 prctl.go reaper.go

Version
v0.2.5
Published
Dec 5, 2016
Platform
linux/amd64
Imports
5 packages
Last checked
7 seconds ago

Tools for package owners.