package reaper
import "github.com/containerd/containerd/reaper"
Index ¶
- Variables
- func Reap() error
- type Cmd
- type Monitor
- func (m *Monitor) CombinedOutput(c *exec.Cmd) ([]byte, error)
- func (m *Monitor) Command(pid int) *Cmd
- func (m *Monitor) Delete(pid int)
- func (m *Monitor) Output(c *exec.Cmd) ([]byte, error)
- func (m *Monitor) Register(pid int, c *Cmd)
- func (m *Monitor) RegisterNL(pid int, c *Cmd)
- func (m *Monitor) Run(c *exec.Cmd) error
- func (m *Monitor) Start(c *exec.Cmd) error
- func (m *Monitor) Wait(c *exec.Cmd) (int, error)
- func (m *Monitor) WaitPid(pid int) (int, error)
Variables ¶
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 Cmd ¶
type Cmd struct { ExitCh chan int // contains filtered or unexported fields }
type Monitor ¶
func (*Monitor) CombinedOutput ¶
func (*Monitor) Command ¶
Command returns the registered pid for the command created
func (*Monitor) Delete ¶
func (*Monitor) Output ¶
func (*Monitor) Register ¶
func (*Monitor) RegisterNL ¶
RegisterNL does not grab the lock internally the caller is responsible for locking the monitor
func (*Monitor) Run ¶
Run runs and waits for the command to finish
func (*Monitor) Start ¶
Start starts the command a registers the process with the reaper
func (*Monitor) Wait ¶
func (*Monitor) WaitPid ¶
Source Files ¶
- Version
- v1.0.0-alpha6
- Published
- Aug 23, 2017
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 2 minutes ago –
Tools for package owners.