Skip to content

Commit 5d654c9

Browse files
committed
Fix windows build.
1 parent 3d63be4 commit 5d654c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/action/runtime.shell.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"os"
88
"os/exec"
99
"runtime"
10-
"syscall"
1110

1211
"github.com/launchrctl/launchr/internal/launchr"
1312
)
@@ -55,7 +54,7 @@ func (r *runtimeShell) Execute(ctx context.Context, a *Action) (err error) {
5554
sigc := launchr.NotifySignals()
5655
go launchr.HandleSignals(ctx, sigc, func(s os.Signal, _ string) error {
5756
launchr.Log().Debug("forwarding signal for action", "sig", s, "pid", cmd.Process.Pid)
58-
return syscall.Kill(-cmd.Process.Pid, s.(syscall.Signal))
57+
return cmd.Process.Signal(s)
5958
})
6059
defer launchr.StopCatchSignals(sigc)
6160

0 commit comments

Comments
 (0)