func ClearKeepCaps() error
func Exec(cmd string, args []string, env []string) error
func Execv(cmd string, args []string, env []string) error
func GetSubreaper() (int, error)
GetSubreaper returns the subreaper setting for the calling process
func SetKeepCaps() error
func SetParentDeathSignal(sig uintptr) error
func SetSubreaper(i int) error
SetSubreaper sets the value i as the subreaper setting for the calling process
func Setctty() error
func Setgid(gid int) (err error)
Setgid sets the gid of the calling thread to the specified gid.
func Setuid(uid int) (err error)
Setuid sets the uid of the calling thread to the specified uid.
type ParentDeathSignal int
func GetParentDeathSignal() (ParentDeathSignal, error)
func (p ParentDeathSignal) Restore() error
func (p ParentDeathSignal) Set() error
Stat_t represents the information from /proc/[pid]/stat, as described in proc(5) with names based on the /proc/[pid]/status fields.
type Stat_t struct { // Name is the command run by the process. Name string // State is the state of the process. State State // StartTime is the number of clock ticks after system boot (since // Linux 2.6). StartTime uint64 }
func Stat(pid int) (stat Stat_t, err error)
Stat returns a Stat_t instance for the specified process.
State is the status of a process.
type State rune
const ( Dead State = 'X' DiskSleep State = 'D' Running State = 'R' Sleeping State = 'S' Stopped State = 'T' TracingStop State = 't' Zombie State = 'Z' Parked State = 'P' Idle State = 'I' )
func (s State) String() string
String forms of the state from proc(5)'s documentation for /proc/[pid]/status' "State" field.