Documentation
¶
Overview ¶
Package proc runs child commands so that cancelling them stops everything they started.
Index ¶
Constants ¶
View Source
const CanTellAlive = true
CanTellAlive reports whether Alive can see that a process has exited.
Variables ¶
This section is empty.
Functions ¶
func Group ¶
Group makes cancellation of cmd stop the processes it started too (a shell pipeline, a terraform wrapper and its terraform), and bounds the wait for children that still hold stdout or stderr open after cmd has exited or been cancelled.
Types ¶
type StderrBuffer ¶ added in v0.1.6
type StderrBuffer struct {
// contains filtered or unexported fields
}
StderrBuffer retains the last 1 MiB, discarding earlier output.
func (*StderrBuffer) Bytes ¶ added in v0.1.6
func (b *StderrBuffer) Bytes() []byte
Click to show internal directories.
Click to hide internal directories.