(cmds []*exec.Cmd)
| 428 | } |
| 429 | |
| 430 | func killProcessGroups(cmds []*exec.Cmd) { |
| 431 | for _, item := range cmds { |
| 432 | if item.Process != nil { |
| 433 | _ = syscall.Kill(-item.Process.Pid, syscall.SIGKILL) |
| 434 | } |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | func WithContext(ctx context.Context) Option { |
| 439 | return func(s *CommandHelper) { |
no outgoing calls
no test coverage detected