package reaper
import "github.com/containerd/containerd/sys/reaper"
Index ¶
- Variables
- func GetSubreaper() (int, error)
- func Reap() error
- func SetSubreaper(i int) error
- type Monitor
Variables ¶
Default is the default monitor initialized for the package
ErrNoSuchProcess is returned when the process no longer exists
Functions ¶
func GetSubreaper ¶
GetSubreaper returns the subreaper setting for the calling process
func Reap ¶
func Reap() error
Reap should be called when the process receives an SIGCHLD. Reap will reap all exited processes and close their wait channels
func SetSubreaper ¶
SetSubreaper sets the value i as the subreaper setting for the calling process
Types ¶
type Monitor ¶
Monitor monitors the underlying system for process status changes
func (*Monitor) Start ¶
Start starts the command a registers the process with the reaper
func (*Monitor) Subscribe ¶
Subscribe to process exit changes
func (*Monitor) Unsubscribe ¶
Unsubscribe to process exit changes
func (*Monitor) Wait ¶
Wait blocks until a process is signal as dead. User should rely on the value of the exit status to determine if the command was successful or not.
Source Files ¶
reaper_unix.go reaper_utils_linux.go
- Version
- v1.5.15
- Published
- Dec 6, 2022
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 25 seconds ago –
Tools for package owners.