Skip to content

Commit 389703a

Browse files
tiancaiamaoshenli
authored andcommitted
tidb-server: don't bind graceful shutdown to SIGTERM (#6562) (#6569)
SIGTERM is the default kill command signal, it's better to bind it with normal exit rather than graceful shutdown.
1 parent cdabfc9 commit 389703a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tidb-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ func setupSignalHandler() {
436436
go func() {
437437
sig := <-sc
438438
log.Infof("Got signal [%s] to exit.", sig)
439-
if sig == syscall.SIGTERM {
439+
if sig == syscall.SIGQUIT {
440440
graceful = true
441441
}
442442

0 commit comments

Comments
 (0)