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

Function startPipeCommands

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

Source from the content-addressed store, hash-verified

250}
251
252func startPipeCommands(cmds []*exec.Cmd) error {
253 for i := len(cmds) - 1; i >= 0; i-- {
254 if err := cmds[i].Start(); err != nil {
255 killStarted(cmds[i+1:])
256 return err
257 }
258 }
259 return nil
260}
261
262func waitPipeCommands(ctx context.Context, cmds []*exec.Cmd) error {
263 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