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 ¶
- func GetOpenFds(pid int) (int, error)
- func GetSubreaper() (int, error)
- func SetSubreaper(i int) error
- type Exit
Functions ¶
func GetOpenFds ¶
GetOpenFds returns the number of open fds for the process provided by pid
func GetSubreaper ¶
GetSubreaper returns the subreaper setting for the calling process
func SetSubreaper ¶
SetSubreaper sets the value i as the subreaper setting for the calling process
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 ¶
- Version
- v0.2.5
- Published
- Dec 5, 2016
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 7 seconds ago –
Tools for package owners.