Documentation ¶
Overview ¶
Package reaper implements zombie process reaper with notifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶
func Notify(ch chan<- ProcessInfo) bool
Notify causes reaper to deliver notifications about reaped zombies.
If Notify returns false, reaper is not running, and Notify does nothing.
func WaitWrapper ¶
func WaitWrapper(usingReaper bool, notifyCh <-chan ProcessInfo, cmd *exec.Cmd) error
WaitWrapper emulates os/exec.Command.Wait() when reaper is running.
WaitWrapper(true, cmd) should be equivalent to cmd.Wait().
Types ¶
type ProcessInfo ¶
type ProcessInfo struct { Pid int Status syscall.WaitStatus }
ProcessInfo describes reaped zombie process.
Click to show internal directories.
Click to hide internal directories.