Browse Source

Fix signal loop in graceful manager (#19943)

tags/v1.18.0-dev
wxiaoguang 2 years ago
parent
commit
a9dc9b06e4
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      modules/graceful/manager_unix.go

+ 1
- 0
modules/graceful/manager_unix.go View File

@@ -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
}
}
}

Loading…
Cancel
Save