diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-15 05:29:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 05:29:13 -0700 |
commit | 37dcc0a305a1606de7c0f5521d11250a4318bb51 (patch) | |
tree | 41e13b09d5c1ea6539e75063b1a308e5980ed7ac /libpod/events.go | |
parent | f4c41961e3b9f164016435d4121b3ff041f7beab (diff) | |
parent | dd8edd639f31c83e6bd8ee88e3bc274fa749193a (diff) | |
download | podman-37dcc0a305a1606de7c0f5521d11250a4318bb51.tar.gz podman-37dcc0a305a1606de7c0f5521d11250a4318bb51.tar.bz2 podman-37dcc0a305a1606de7c0f5521d11250a4318bb51.zip |
Merge pull request #2617 from giuseppe/fix-with-config
runtime: fill the runtime config with sane defaults
Diffstat (limited to 'libpod/events.go')
-rw-r--r-- | libpod/events.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/events.go b/libpod/events.go index 879aeb6c5..f09529a05 100644 --- a/libpod/events.go +++ b/libpod/events.go @@ -1,6 +1,8 @@ package libpod import ( + "os" + "github.com/containers/libpod/libpod/events" "github.com/hpcloud/tail" "github.com/pkg/errors" @@ -85,7 +87,7 @@ func (r *Runtime) Events(fromStart, stream bool, options []events.EventFilter, e func (r *Runtime) getTail(fromStart, stream bool) (*tail.Tail, error) { reopen := true - seek := tail.SeekInfo{Offset: 0, Whence: 2} + seek := tail.SeekInfo{Offset: 0, Whence: os.SEEK_END} if fromStart || !stream { seek.Whence = 0 reopen = false |