diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-09-10 16:03:52 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2018-09-13 10:11:00 -0400 |
commit | 9ec82caa3147d7afaf9361748661c8868194d132 (patch) | |
tree | 4de0f051226e638819f2d4e34174b39e4b203c8a /libpod/container.go | |
parent | 61eda671eca96b6fa32369572d9b49850895d37b (diff) | |
download | podman-9ec82caa3147d7afaf9361748661c8868194d132.tar.gz podman-9ec82caa3147d7afaf9361748661c8868194d132.tar.bz2 podman-9ec82caa3147d7afaf9361748661c8868194d132.zip |
Add --interval flag to podman wait
Waiting uses a lot of CPU, so drop back to checking once/second
and allow user to pass in the interval.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go index e748cb84d..f68a3535e 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -36,6 +36,8 @@ const ( ContainerStateStopped ContainerStatus = iota // ContainerStatePaused indicates that the container has been paused ContainerStatePaused ContainerStatus = iota + // WaitTimeout is the wait timeout before checking for container exit + WaitTimeout = time.Second / time.Millisecond ) // CgroupfsDefaultCgroupParent is the cgroup parent for CGroupFS in libpod |