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

Skip to content

Commit 80bd12c

Browse files
committed
e tu window?^2
1 parent ea5ab42 commit 80bd12c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/agentssh/exec_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package agentssh
22

33
import (
44
"context"
5-
"os"
65
"os/exec"
76
"syscall"
87

@@ -15,7 +14,8 @@ func cmdSysProcAttr() *syscall.SysProcAttr {
1514

1615
func cmdCancel(ctx context.Context, logger slog.Logger, cmd *exec.Cmd) func() error {
1716
return func() error {
18-
logger.Debug(ctx, "cmdCancel: sending interrupt to process", slog.F("pid", cmd.Process.Pid))
19-
return cmd.Process.Signal(os.Interrupt)
17+
logger.Debug(ctx, "cmdCancel: killing process", slog.F("pid", cmd.Process.Pid))
18+
return cmd.Process.Kill()
19+
// return cmd.Process.Signal(os.Interrupt)
2020
}
2121
}

0 commit comments

Comments
 (0)