summaryrefslogtreecommitdiff
path: root/cmd/podman/start.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-09-10 16:03:52 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2018-09-13 10:11:00 -0400
commit9ec82caa3147d7afaf9361748661c8868194d132 (patch)
tree4de0f051226e638819f2d4e34174b39e4b203c8a /cmd/podman/start.go
parent61eda671eca96b6fa32369572d9b49850895d37b (diff)
downloadpodman-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 'cmd/podman/start.go')
-rw-r--r--cmd/podman/start.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go
index cb65ec6d4..a80d0e1e8 100644
--- a/cmd/podman/start.go
+++ b/cmd/podman/start.go
@@ -115,7 +115,7 @@ func startCmd(c *cli.Context) error {
return errors.Wrapf(err, "unable to start container %s", ctr.ID())
}
- if ecode, err := ctr.Wait(); err != nil {
+ if ecode, err := ctr.Wait(libpod.WaitTimeout); err != nil {
logrus.Errorf("unable to get exit code of container %s: %q", ctr.ID(), err)
} else {
exitCode = int(ecode)