Versions in this module Expand all Collapse all v0 v0.6.76 Nov 22, 2026 Changes in this version + func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd + func IsPID1() bool + func Output(cmd *exec.Cmd) ([]byte, error) + func Reap(ctx context.Context, _ *slog.Logger) — darwin/amd64, js/wasm, windows/amd64 + func Reap(ctx context.Context, log *slog.Logger) — linux/amd64 + func Run(cmd *exec.Cmd) error + func Start(cmd *exec.Cmd, start func() error) error + func Wait(cmd *exec.Cmd) error + type Process struct + Cmd *exec.Cmd + ExcludeFromIdle bool + Name string + StartedAt time.Time + func (p *Process) Done() <-chan struct{} + func (p *Process) Err() error + func (p *Process) Pid() int + type ProcessInfo struct + ExcludeFromIdle bool + Name string + Pid int + StartedAt time.Time + type Supervisor struct + func NewSupervisor(log *slog.Logger) *Supervisor + func (s *Supervisor) ExcludedPids() map[int]bool + func (s *Supervisor) Forward(sig syscall.Signal) + func (s *Supervisor) List() []ProcessInfo + func (s *Supervisor) Spawn(name string, cmd *exec.Cmd, start func() error, excludeFromIdle bool) (*Process, error) + func (s *Supervisor) Stop(p *Process, grace time.Duration) error + func (s *Supervisor) StopAll(ctx context.Context, grace time.Duration)