summaryrefslogtreecommitdiff
path: root/libpod/oci_linux.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-07-02 18:52:55 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-07-02 18:52:55 -0400
commita1bb1987cc78dead96ef84086020f74b7c44c700 (patch)
tree928f8f2776e6027d04c2be1ef5dc52dbcd409e69 /libpod/oci_linux.go
parent55e028a12ee003e057c65e376fe4b723d28ae52e (diff)
downloadpodman-a1bb1987cc78dead96ef84086020f74b7c44c700.tar.gz
podman-a1bb1987cc78dead96ef84086020f74b7c44c700.tar.bz2
podman-a1bb1987cc78dead96ef84086020f74b7c44c700.zip
Store Conmon's PID in our state and display in inspect
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/oci_linux.go')
-rw-r--r--libpod/oci_linux.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/oci_linux.go b/libpod/oci_linux.go
index 7d9f47ae2..24502ef4f 100644
--- a/libpod/oci_linux.go
+++ b/libpod/oci_linux.go
@@ -446,6 +446,9 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
return errors.Wrapf(define.ErrInternal, "container create failed")
}
ctr.state.PID = ss.si.Pid
+ if cmd.Process != nil {
+ ctr.state.ConmonPID = cmd.Process.Pid
+ }
case <-time.After(ContainerCreateTimeout):
return errors.Wrapf(define.ErrInternal, "container creation timeout")
}