Skip to content

Commit faecb7c

Browse files
committed
Revert "Fix: Try to send interupt to sys.daemon to allow cleanup"
This reverts commit 1104843.
1 parent 823142b commit faecb7c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pkg/daemon/daemon.go

-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"io"
66
"os"
77
"os/exec"
8-
"runtime"
98
)
109

1110
func SysDaemon() error {
@@ -20,11 +19,5 @@ func SysDaemon() error {
2019
cmd := exec.CommandContext(ctx, os.Args[2], os.Args[3:]...)
2120
cmd.Stderr = os.Stderr
2221
cmd.Stdout = os.Stdout
23-
cmd.Cancel = func() error {
24-
if runtime.GOOS == "windows" {
25-
return cmd.Process.Kill()
26-
}
27-
return cmd.Process.Signal(os.Interrupt)
28-
}
2922
return cmd.Run()
3023
}

0 commit comments

Comments
 (0)