We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c610107 commit 7394814Copy full SHA for 7394814
cmd/dbos/start.go
@@ -7,7 +7,6 @@ import (
7
"os/signal"
8
"runtime"
9
"syscall"
10
- "time"
11
12
"github.com/spf13/cobra"
13
)
@@ -83,21 +82,6 @@ func runStart(cmd *cobra.Command, args []string) error {
83
82
process.Process.Kill()
84
}
85
86
- // Wait a bit for graceful shutdown
87
- select {
88
- case <-done:
89
- case <-sigChan:
90
- // Force kill if we get another signal
91
- if runtime.GOOS != "windows" {
92
- syscall.Kill(-process.Process.Pid, syscall.SIGKILL)
93
- }
94
- case <-time.After(10 * time.Second):
95
- // Force kill after timeout
96
97
98
99
100
-
101
os.Exit(0)
102
103
0 commit comments