()
| 11 | ) |
| 12 | |
| 13 | func cmdSysProcAttr() *syscall.SysProcAttr { |
| 14 | return &syscall.SysProcAttr{ |
| 15 | Setsid: true, |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func cmdCancel(logger slog.Logger, p *os.Process) error { |
| 20 | logger.Debug(context.Background(), "cmdCancel: sending SIGHUP to process and children", slog.F("pid", p.Pid)) |