package reaper
import "github.com/containerd/containerd/sys/reaper"
Index ¶
Variables ¶
Default is the default monitor initialized for the package
ErrNoSuchProcess is returned when the process no longer exists
Functions ¶
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
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 ¶
- Version
- v1.5.8
- Published
- Nov 17, 2021
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 4 minutes ago –
Tools for package owners.