MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / killProcessGroups

Function killProcessGroups

core/utils/cmd/cmdx.go:397–403  ·  view source on GitHub ↗
(cmds []*exec.Cmd)

Source from the content-addressed store, hash-verified

395}
396
397func killProcessGroups(cmds []*exec.Cmd) {
398 for _, item := range cmds {
399 if item.Process != nil {
400 _ = syscall.Kill(-item.Process.Pid, syscall.SIGKILL)
401 }
402 }
403}
404
405func WithOutputFile(outputFile string) Option {
406 return func(s *CommandHelper) {

Callers 2

waitPipeCommandsFunction · 0.70
killStartedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected