procGroup tracks child processes using an errgroup. When any child exits, the errgroup cancels its derived context, aborting all downstream operations. Graceful shutdown is handled by cmd.Cancel/WaitDelay on each command.
| 519 | // all downstream operations. Graceful shutdown is handled by |
| 520 | // cmd.Cancel/WaitDelay on each command. |
| 521 | type procGroup struct { |
| 522 | eg *errgroup.Group |
| 523 | ctx context.Context |
| 524 | logger slog.Logger |
| 525 | } |
| 526 | |
| 527 | func newProcGroup(ctx context.Context, logger slog.Logger) *procGroup { |
| 528 | eg, ctx := errgroup.WithContext(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected