Documentation
¶
Overview ¶
Package cmd same as exec module but with zombie processes reaper support.
Package cmd same as exec module but with reaper support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.2.0
type Builder struct {
// contains filtered or unexported fields
}
func (Builder) Run ¶ added in v0.2.0
Run executes a command with context, awaits completion and returnes result
func (Builder) WithContext ¶ added in v0.2.0
WithContext returns new Builder with context, which will be applied to command execution
type ProcessInfo ¶
type ProcessInfo struct {
Pid int
Status syscall.WaitStatus
}
type ProcessState ¶
type ProcessState struct {
// contains filtered or unexported fields
}
ProcessState stores information about a process, as reported by Wait.
func (*ProcessState) ExitCode ¶
func (p *ProcessState) ExitCode() int
ExitCode returns the exit code of the exited process, or -1 if the process hasn't exited or was terminated by a signal.
func (*ProcessState) Exited ¶
func (p *ProcessState) Exited() bool
func (*ProcessState) Pid ¶
func (p *ProcessState) Pid() int
Pid returns the process id of the exited process.
func (*ProcessState) String ¶
func (p *ProcessState) String() string
func (*ProcessState) Success ¶
func (p *ProcessState) Success() bool
type RunResult ¶ added in v0.2.0
type RunResult struct {
// contains filtered or unexported fields
}
func (*RunResult) State ¶ added in v0.2.0
func (c *RunResult) State() *ProcessState
type ZombieProcessReaper ¶
type ZombieProcessReaper struct {
}
Click to show internal directories.
Click to hide internal directories.