From 73948145c22fd28aeb0a6478cae278200310061f Mon Sep 17 00:00:00 2001 From: apoliakov Date: Wed, 22 Oct 2025 03:43:44 +0000 Subject: [PATCH] Don't promote SIGTERM to SIGKILL; let the users do it if needed --- cmd/dbos/start.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cmd/dbos/start.go b/cmd/dbos/start.go index 6e377665..60f41bec 100644 --- a/cmd/dbos/start.go +++ b/cmd/dbos/start.go @@ -7,7 +7,6 @@ import ( "os/signal" "runtime" "syscall" - "time" "github.com/spf13/cobra" ) @@ -83,21 +82,6 @@ func runStart(cmd *cobra.Command, args []string) error { process.Process.Kill() } - // Wait a bit for graceful shutdown - select { - case <-done: - case <-sigChan: - // Force kill if we get another signal - if runtime.GOOS != "windows" { - syscall.Kill(-process.Process.Pid, syscall.SIGKILL) - } - case <-time.After(10 * time.Second): - // Force kill after timeout - if runtime.GOOS != "windows" { - syscall.Kill(-process.Process.Pid, syscall.SIGKILL) - } - } - os.Exit(0) } }