Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1717 from improbable-io/forks/v0.13.0
Browse files Browse the repository at this point in the history
make Monitor shut down the process hard if it fails to shutdown grace…
  • Loading branch information
Dongsu Park committed Dec 19, 2016
2 parents 79449f7 + 3b22e3d commit 4249a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ func (s *Server) Supervise() {
select {
case <-done:
case <-time.After(shutdownTimeout):
log.Errorf("Timed out waiting for server to shut down")
sd = true
log.Errorf("Timed out waiting for server to shut down. Panicking the server without cleanup.")
panic("Failed server shutdown. Panic")
}
if !sd {
log.Infof("Restarting server")
Expand Down

0 comments on commit 4249a49

Please sign in to comment.