diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-09 17:45:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 17:45:22 +0000 |
commit | 9cfdffdfa35097e4c4d091e9cdc549f5740e4980 (patch) | |
tree | 6849a5fbfb58450822aaa2ec42d1c94af0508b4b | |
parent | 4a52a457d1e33a4817e4ce1dca390ba942eaec44 (diff) | |
parent | 6d19ecadc869753aaf7875914a3f6e855b97c31b (diff) | |
download | podman-9cfdffdfa35097e4c4d091e9cdc549f5740e4980.tar.gz podman-9cfdffdfa35097e4c4d091e9cdc549f5740e4980.tar.bz2 podman-9cfdffdfa35097e4c4d091e9cdc549f5740e4980.zip |
Merge pull request #12557 from vrothberg/fix-11825
inotify: make sure to remove files
-rw-r--r-- | libpod/util.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/util.go b/libpod/util.go index 5154a261e..e89c6faaa 100644 --- a/libpod/util.go +++ b/libpod/util.go @@ -56,6 +56,7 @@ func WaitForFile(path string, chWait chan error, timeout time.Duration) (bool, e inotifyEvents = watcher.Events } defer watcher.Close() + defer watcher.Remove(filepath.Dir(path)) } var timeoutChan <-chan time.Time |