Skip to content

Commit

Permalink
Fix signal loop in graceful manager (#19943)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jun 12, 2022
1 parent 796c4ec commit a9dc9b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/graceful/manager_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func (g *Manager) handleSignals(ctx context.Context) {
case <-ctx.Done():
log.Warn("PID: %d. Background context for manager closed - %v - Shutting down...", pid, ctx.Err())
g.DoGracefulShutdown()
return
}
}
}
Expand Down

0 comments on commit a9dc9b0

Please sign in to comment.