Fix error if continueWrite/continueRead pipe open fails
I think the error message on this line was copied from a few lines above by accident. Signed-off-by: David Kleingeld <git@davidsk.dev>
This commit is contained in:
parent
e7785dcb42
commit
4a308cf892
|
|
@ -59,7 +59,7 @@ func (c *Cmd) Start() error {
|
|||
if err != nil {
|
||||
pidRead.Close()
|
||||
pidWrite.Close()
|
||||
return fmt.Errorf("creating pid pipe: %w", err)
|
||||
return fmt.Errorf("creating continue read/write pipe: %w", err)
|
||||
}
|
||||
c.Env = append(c.Env, fmt.Sprintf("_Containers-continue-pipe=%d", len(c.ExtraFiles)+3))
|
||||
c.ExtraFiles = append(c.ExtraFiles, continueRead)
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ func (c *Cmd) Start() error {
|
|||
if err != nil {
|
||||
pidRead.Close()
|
||||
pidWrite.Close()
|
||||
return fmt.Errorf("creating pid pipe: %w", err)
|
||||
return fmt.Errorf("creating continue read/write pipe: %w", err)
|
||||
}
|
||||
c.Env = append(c.Env, fmt.Sprintf("_Containers-continue-pipe=%d", len(c.ExtraFiles)+3))
|
||||
c.ExtraFiles = append(c.ExtraFiles, continueRead)
|
||||
|
|
|
|||
Loading…
Reference in New Issue