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

Function killProcessGroups

agent/utils/cmd/cmdx.go:430–436  ·  view source on GitHub ↗
(cmds []*exec.Cmd)

Source from the content-addressed store, hash-verified

428}
429
430func killProcessGroups(cmds []*exec.Cmd) {
431 for _, item := range cmds {
432 if item.Process != nil {
433 _ = syscall.Kill(-item.Process.Pid, syscall.SIGKILL)
434 }
435 }
436}
437
438func WithContext(ctx context.Context) Option {
439 return func(s *CommandHelper) {

Callers 2

waitPipeCommandsFunction · 0.70
killStartedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected