diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-05-20 11:56:52 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-05-20 19:40:15 +0200 |
commit | 57e781462c5f93fcdd37ffd8e2d5ebdb0c6ca27e (patch) | |
tree | 816bd68b8766c4d14cb7bd8eefb9c0a816bfe66e /libpod/container_graph.go | |
parent | a83edf23ac8fb12f8787ead5257b35425e1996d6 (diff) | |
download | podman-57e781462c5f93fcdd37ffd8e2d5ebdb0c6ca27e.tar.gz podman-57e781462c5f93fcdd37ffd8e2d5ebdb0c6ca27e.tar.bz2 podman-57e781462c5f93fcdd37ffd8e2d5ebdb0c6ca27e.zip |
util: fix race condition in WaitForFile
enable polling also when using inotify. It is generally useful to
have it as under high load inotify can lose notifications. It also
solves a race condition where the file is created while the watcher
is configured and it'd wait until the timeout and fail.
Closes: https://github.com/containers/libpod/issues/2942
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/container_graph.go')
0 files changed, 0 insertions, 0 deletions