diff --git a/pkg/daemon/daemon.go b/pkg/daemon/daemon.go index bce6ec43..58afbf98 100644 --- a/pkg/daemon/daemon.go +++ b/pkg/daemon/daemon.go @@ -5,7 +5,6 @@ import ( "io" "os" "os/exec" - "runtime" ) func SysDaemon() error { @@ -20,11 +19,5 @@ func SysDaemon() error { cmd := exec.CommandContext(ctx, os.Args[2], os.Args[3:]...) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout - cmd.Cancel = func() error { - if runtime.GOOS == "windows" { - return cmd.Process.Kill() - } - return cmd.Process.Signal(os.Interrupt) - } return cmd.Run() }