aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-06-12 21:50:18 +0800
committerGitHub <noreply@github.com>2022-06-12 21:50:18 +0800
commita9dc9b06e4a4106ec8315fe7b2922efa440ca199 (patch)
treef9b5f3fec8f07ac705f9b222ce2b24507820e5b0 /modules
parent796c4eca0bacf67c186768de66fcfee21867045f (diff)
downloadgitea-a9dc9b06e4a4106ec8315fe7b2922efa440ca199.tar.gz
gitea-a9dc9b06e4a4106ec8315fe7b2922efa440ca199.zip
Fix signal loop in graceful manager (#19943)
Diffstat (limited to 'modules')
-rw-r--r--modules/graceful/manager_unix.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go
index 9d3816e9c2..ba1dbd38f6 100644
--- a/modules/graceful/manager_unix.go
+++ b/modules/graceful/manager_unix.go
@@ -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
}
}
}