Documentation
¶
Index ¶
Constants ¶
View Source
const MaxDefer = 60 * time.Second
MaxDefer is how long reaping waits before blocking new subprocesses.
View Source
const MaxDrain = 30 * time.Second
MaxDrain is how long a forced drain waits before abandoning the reap.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reaper ¶
type Reaper struct {
// contains filtered or unexported fields
}
Reaper collects orphaned children. The zero value is not usable; call New.
func (*Reaper) CombinedOutput ¶
CombinedOutput is RunCommand for callers that need cmd.CombinedOutput.
func (*Reaper) Enter ¶
func (r *Reaper) Enter() func()
Enter prevents reaping until the returned function is called.
defer reaper.Enter()()
Do not use Enter for long-lived subprocesses; they prevent reaping.
Click to show internal directories.
Click to hide internal directories.