osutils

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

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 SetPDeathSig added in v0.2.9

func SetPDeathSig() *syscall.SysProcAttr

SetPDeathSig sets the parent death signal to SIGKILL so that if the shim dies the container process also dies.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL