From faecb7c65cda2c5d093724932e4d5d4c725567fd Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Wed, 3 Jul 2024 12:12:22 -0700 Subject: [PATCH] Revert "Fix: Try to send interupt to sys.daemon to allow cleanup" This reverts commit 1104843ccc7c571568756e8468d7607d546fb467. --- pkg/daemon/daemon.go | 7 ------- 1 file changed, 7 deletions(-) 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() }