Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b4b20d

Browse files
Apply suggestions from code review
Co-authored-by: Danny Kopping <[email protected]>
1 parent 582b74b commit 1b4b20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agentscripts/agentscripts_other.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func cmdSysProcAttr() *syscall.SysProcAttr {
1818

1919
func cmdCancel(ctx context.Context, logger slog.Logger, cmd *exec.Cmd) func() error {
2020
return func() error {
21-
logger.Debug(ctx, "cmdCancel: sending SIGHUP to process", slog.F("pid", -cmd.Process.Pid))
21+
logger.Debug(ctx, "cmdCancel: sending SIGHUP to process and children", slog.F("pid", cmd.Process.Pid))
2222
return syscall.Kill(-cmd.Process.Pid, syscall.SIGHUP)
2323
}
2424
}

0 commit comments

Comments
 (0)