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

Function startPipeCommands

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

Source from the content-addressed store, hash-verified

271}
272
273func startPipeCommands(cmds []*exec.Cmd) error {
274 for i := len(cmds) - 1; i >= 0; i-- {
275 if err := cmds[i].Start(); err != nil {
276 killStarted(cmds[i+1:])
277 return err
278 }
279 }
280 return nil
281}
282
283func waitPipeCommands(ctx context.Context, cmds []*exec.Cmd) error {
284 done := make(chan error, 1)

Callers 2

RunPipeMethod · 0.70
RunPipeToFileMethod · 0.70

Calls 2

killStartedFunction · 0.70
StartMethod · 0.65

Tested by

no test coverage detected