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

Function killStarted

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

Source from the content-addressed store, hash-verified

419}
420
421func killStarted(cmds []*exec.Cmd) {
422 killProcessGroups(cmds)
423 for _, item := range cmds {
424 if item.Process != nil {
425 _ = item.Wait()
426 }
427 }
428}
429
430func killProcessGroups(cmds []*exec.Cmd) {
431 for _, item := range cmds {

Callers 1

startPipeCommandsFunction · 0.70

Calls 2

killProcessGroupsFunction · 0.70
WaitMethod · 0.45

Tested by

no test coverage detected