fix(process): reap entire process group on cmd.Cancel (#39143)

Signed-off-by: Royce Remer <royceremer@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Royce Remerandwxiaoguang authored and GitHub committed 2026-08-29 19:54:07 +00:00
1 parent 88974d2db9
commit eea03676d3
21 files changed
+198 -203

No files matched your search

-4
View File
@@ -11,7 +11,6 @@ import (
"gitea.dev/modules/gtprof"
"gitea.dev/modules/log"
"gitea.dev/modules/process"
"gitea.dev/modules/setting"
)
@@ -62,9 +61,6 @@ func InitManager(ctx context.Context) {
func initManager(ctx context.Context) {
initOnce.Do(func() {
manager = newGracefulManager(ctx)
// Set the process default context to the HammerContext
process.DefaultContext = manager.HammerContext()
})
}