Skip to content

Commit

Permalink
oci: read conmon process status
Browse files Browse the repository at this point in the history
be sure we don't leave the conmon process around if we fail to write
to the start pipe.

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe authored and mrunalp committed Jan 14, 2019
1 parent 1fecbd3 commit 9757246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ func (r *Runtime) CreateContainer(c *Container, cgroupParent string) (err error)
someData := []byte{0}
_, err = parentStartPipe.Write(someData)
if err != nil {
cmd.Wait()
return err
}

Expand Down

0 comments on commit 9757246

Please sign in to comment.