mirror of https://github.com/containers/podman.git
Merge pull request #12557 from vrothberg/fix-11825
inotify: make sure to remove files
This commit is contained in:
commit
9cfdffdfa3
|
|
@ -56,6 +56,7 @@ func WaitForFile(path string, chWait chan error, timeout time.Duration) (bool, e
|
||||||
inotifyEvents = watcher.Events
|
inotifyEvents = watcher.Events
|
||||||
}
|
}
|
||||||
defer watcher.Close()
|
defer watcher.Close()
|
||||||
|
defer watcher.Remove(filepath.Dir(path))
|
||||||
}
|
}
|
||||||
|
|
||||||
var timeoutChan <-chan time.Time
|
var timeoutChan <-chan time.Time
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue