Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoParent = fmt.Errorf("running without parent launcher process")
ErrNoParent is returned if the current process has no parent (it's ppid equals 1)
Functions ¶
func RequestRestart ¶
func RequestRestart() error
RequestRestart sends a SIGUSR1 signal to the parent launcher process causing it to restart controlled child process. Returns ErrNoParent if there is no parent.
Types ¶
type Opt ¶ added in v0.3.1
type Opt func(*Opts)
func WithInterruptSignal ¶ added in v0.3.1
func WithInterruptTimeout ¶ added in v0.3.1
func WithWaitGroup ¶ added in v0.3.1
type RuntimeError ¶
type RuntimeError struct {
ExitCode int
}
RuntimeError wraps error exit code from the child process
func (RuntimeError) Error ¶
func (r RuntimeError) Error() string
Click to show internal directories.
Click to hide internal directories.