Skip to content

Commit

Permalink
Revert "Fix: Try to send interupt to sys.daemon to allow cleanup"
Browse files Browse the repository at this point in the history
This reverts commit 1104843.
  • Loading branch information
StrongMonkey committed Jul 3, 2024
1 parent 823142b commit faecb7c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"os"
"os/exec"
"runtime"
)

func SysDaemon() error {
Expand All @@ -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()
}

0 comments on commit faecb7c

Please sign in to comment.