summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-10-25 13:35:39 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-11-07 11:36:01 -0500
commit3286b0185debc809664d854dd2ee75bf75efadc4 (patch)
tree2e2c799557dc25e0e6b9db452d79cfbe959bdbb3 /libpod/oci.go
parent94763a47a6e86ccf13d8a3ded3365f9c4440a668 (diff)
downloadpodman-3286b0185debc809664d854dd2ee75bf75efadc4.tar.gz
podman-3286b0185debc809664d854dd2ee75bf75efadc4.tar.bz2
podman-3286b0185debc809664d854dd2ee75bf75efadc4.zip
Retrieve container PID from conmon
Instead of running a full sync after starting a container to pick up its PID, grab it from Conmon instead. Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index e8a97226a..d3ce70133 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -441,6 +441,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
}
return errors.Wrapf(ErrInternal, "container create failed")
}
+ ctr.state.PID = ss.si.Pid
case <-time.After(ContainerCreateTimeout):
return errors.Wrapf(ErrInternal, "container creation timeout")
}