Skip to content

Commit a4a0270

Browse files
committed
Interrupt on Windows
1 parent 9591e34 commit a4a0270

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agentscripts/agentscripts_windows.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package agentscripts
22

33
import (
4+
"os"
45
"os/exec"
56
"syscall"
67
)
@@ -11,6 +12,6 @@ func cmdSysProcAttr() *syscall.SysProcAttr {
1112

1213
func cmdCancel(cmd *exec.Cmd) func() error {
1314
return func() error {
14-
return nil
15+
return cmd.Process.Signal(os.Interrupt)
1516
}
1617
}

0 commit comments

Comments
 (0)