Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 582b74b commit 1b4b20dCopy full SHA for 1b4b20d
agent/agentscripts/agentscripts_other.go
@@ -18,7 +18,7 @@ func cmdSysProcAttr() *syscall.SysProcAttr {
18
19
func cmdCancel(ctx context.Context, logger slog.Logger, cmd *exec.Cmd) func() error {
20
return func() error {
21
- logger.Debug(ctx, "cmdCancel: sending SIGHUP to process", slog.F("pid", -cmd.Process.Pid))
+ logger.Debug(ctx, "cmdCancel: sending SIGHUP to process and children", slog.F("pid", cmd.Process.Pid))
22
return syscall.Kill(-cmd.Process.Pid, syscall.SIGHUP)
23
}
24
0 commit comments