summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-06-18 13:18:01 -0500
committerBrent Baude <bbaude@redhat.com>2020-06-19 09:00:03 -0500
commitf46664546a352cde38ecff6d647932561ba27b67 (patch)
treea5ff30950c9b34464c69757479449bd43c489e82 /libpod
parent5ec29f8d4e79500915ec79824d9eb21630205f3f (diff)
downloadpodman-f46664546a352cde38ecff6d647932561ba27b67.tar.gz
podman-f46664546a352cde38ecff6d647932561ba27b67.tar.bz2
podman-f46664546a352cde38ecff6d647932561ba27b67.zip
Poll on events for file reading
When multiple connections are monitoring events via the remote API, the inotify in the hpcloud library seems unable to consistently send events. Switching from inotify to poll seems to clear this up. Fixes: #6664 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/events/events.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/events/events.go b/libpod/events/events.go
index 0d8c6b7d6..0253b1ee5 100644
--- a/libpod/events/events.go
+++ b/libpod/events/events.go
@@ -202,5 +202,5 @@ func (e EventLogFile) getTail(options ReadOptions) (*tail.Tail, error) {
if len(options.Until) > 0 {
stream = false
}
- return tail.TailFile(e.options.LogFilePath, tail.Config{ReOpen: reopen, Follow: stream, Location: &seek, Logger: tail.DiscardingLogger})
+ return tail.TailFile(e.options.LogFilePath, tail.Config{ReOpen: reopen, Follow: stream, Location: &seek, Logger: tail.DiscardingLogger, Poll: true})
}