Skip to content

Commit

Permalink
util: change graceful shutdown signal (#37441)
Browse files Browse the repository at this point in the history
close #13369
  • Loading branch information
xhebox authored Aug 30, 2022
1 parent 5f35b32 commit 4cece12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/signal/signal_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ func SetupSignalHandler(shutdownFunc func(bool)) {
go func() {
sig := <-closeSignalChan
logutil.BgLogger().Info("got signal to exit", zap.Stringer("signal", sig))
shutdownFunc(sig == syscall.SIGQUIT)
shutdownFunc(sig != syscall.SIGHUP)
}()
}
2 changes: 1 addition & 1 deletion util/signal/signal_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ func SetupSignalHandler(shutdownFunc func(bool)) {
go func() {
sig := <-closeSignalChan
logutil.BgLogger().Info("got signal to exit", zap.Stringer("signal", sig))
shutdownFunc(sig == syscall.SIGQUIT)
shutdownFunc(sig != syscall.SIGHUP)
}()
}

0 comments on commit 4cece12

Please sign in to comment.