Documentation
¶
Overview ¶
Package proc reads process ancestry and groups (spec 6.2, 6.6): /proc on Linux, sysctl kern.proc on darwin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAncestor ¶
IsAncestor reports whether (pid, start) is this process or one of its ancestors.
Types ¶
type Stat ¶
type Stat struct {
Pid, PPid, Pgrp int
State byte
// Start identifies the process incarnation; compare it for equality only. Linux: field 22
// of /proc/<pid>/stat, clock ticks since boot. darwin: kinfo_proc p_starttime (wall clock
// since the Unix epoch) folded into microseconds.
Start uint64
}
Stat is the part of /proc/<pid>/stat bitc uses (on darwin, the same fields of kinfo_proc).