Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/graceful/manager_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (g *Manager) handleSignals(ctx context.Context) {
)

pid := syscall.Getpid()
loop:
for {
select {
case sig := <-signalChannel:
Expand Down Expand Up @@ -157,6 +158,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()
break loop
}
}
}
Expand Down