-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the inotify event handling in ReloadingYamlFileDisplayConfig::aut…
…o_reload() (#3636) ReloadingYamlFileDisplayConfig::auto_reload() incorrectly triggered on `IN_CREATE`. The reason for that is that `IN_CREATE` and `IN_CLOSE_WRITE` events can often be read as pairs and we were not handling multiple events correctly. Note: This is a backport of the logic in ConfigFile's Watcher::handler(). Ideally, we'd unify the code. But that's awkward as Watcher currently only handles changes to a single file. It would make sense to rework Watcher to have a single watch on the configuration directory and register multiple files with it.
- Loading branch information
Showing
2 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters