diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-29 11:10:30 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-29 11:10:34 +0100 |
commit | d8caa2f2fa006b61737d68600808c7ff10b21ece (patch) | |
tree | 700ea120c582e15babfd42d3dbd2b49825c10ee8 | |
parent | fdf979a7917a497322b23354778bd32bbd9b05f5 (diff) | |
download | podman-d8caa2f2fa006b61737d68600808c7ff10b21ece.tar.gz podman-d8caa2f2fa006b61737d68600808c7ff10b21ece.tar.bz2 podman-d8caa2f2fa006b61737d68600808c7ff10b21ece.zip |
oci: drop reference to runc
it can be any OCI runtime.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | libpod/oci.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index b25175b9d..62331b879 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -473,7 +473,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res // If useRunc is false, we will not directly hit runc to see the container's // status, but will instead only check for the existence of the conmon exit file // and update state to stopped if it exists. -func (r *OCIRuntime) updateContainerStatus(ctr *Container, useRunc bool) error { +func (r *OCIRuntime) updateContainerStatus(ctr *Container, useRuntime bool) error { exitFile := ctr.exitFilePath() runtimeDir, err := util.GetRootlessRuntimeDir() @@ -481,8 +481,8 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container, useRunc bool) error { return err } - // If not using runc, we don't need to do most of this. - if !useRunc { + // If not using the OCI runtime, we don't need to do most of this. + if !useRuntime { // If the container's not running, nothing to do. if ctr.state.State != ContainerStateRunning && ctr.state.State != ContainerStatePaused { return nil |