mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-08 22:13:26 +09:00
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:
co-authored by
wxiaoguang
parent
88974d2db9
commit
eea03676d3
@@ -62,6 +62,10 @@ linters:
|
||||
desc: "migrations must not depend on the models package. HINT: MIGRATION-STRUCT-FROZEN"
|
||||
- pkg: gitea.dev/modules/structs
|
||||
desc: "migrations must not depend on modules/structs. HINT: MIGRATION-STRUCT-FROZEN"
|
||||
forbidigo:
|
||||
forbid:
|
||||
- pattern: '^(fmt\.Print(|f|ln)|print|println)$' # default
|
||||
- pattern: '^exec\.CommandContext$' # use our wrapper for graceful termination
|
||||
modernize:
|
||||
disable:
|
||||
- embedlit
|
||||
@@ -140,6 +144,7 @@ linters:
|
||||
- linters:
|
||||
- dupl
|
||||
- errcheck
|
||||
- forbidigo
|
||||
- staticcheck
|
||||
- unparam
|
||||
path: _test\.go
|
||||
|
||||
Reference in New Issue
Block a user