Fix signal loop in graceful manager (#19943)

tokarchuk/v1.17
wxiaoguang 3 years ago committed by GitHub
parent 796c4eca0b
commit a9dc9b06e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/graceful/manager_unix.go

@ -157,6 +157,7 @@ func (g *Manager) handleSignals(ctx context.Context) {
case <-ctx.Done(): case <-ctx.Done():
log.Warn("PID: %d. Background context for manager closed - %v - Shutting down...", pid, ctx.Err()) log.Warn("PID: %d. Background context for manager closed - %v - Shutting down...", pid, ctx.Err())
g.DoGracefulShutdown() g.DoGracefulShutdown()
return
} }
} }
} }

Loading…
Cancel
Save