Skip to content

Commit

Permalink
Remove restriction on syscall.SIGTERM.
Browse files Browse the repository at this point in the history
Doesn't really make sense since we shut down the server for SIGINT
gracefully as well.
  • Loading branch information
timoreimann committed Aug 24, 2017
1 parent add53dd commit 4980c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server_signals.go
Expand Up @@ -33,7 +33,7 @@ func (server *Server) listenSignals() {
default:
log.Infof("I have to go... %+v", sig)
reqAcceptGraceTimeOut := time.Duration(server.globalConfiguration.ReqAcceptGraceTimeOut)
if reqAcceptGraceTimeOut > 0 && sig == syscall.SIGTERM {
if reqAcceptGraceTimeOut > 0 {
log.Infof("Waiting %s for incoming requests to cease", reqAcceptGraceTimeOut)
time.Sleep(reqAcceptGraceTimeOut)
}
Expand Down

0 comments on commit 4980c33

Please sign in to comment.