Reading the documentation on the man page, I assume that using the mask `IN_ONESHOT` may solve a problem that possibly arises: when a file is saved, it is actually modified again, which triggers another event. This recursion presumably happens even apart from all possible race conditions in threads. The `FileDiskStatus` type may become handy to distinguish the items with and without buffered data in [Reload all](https://github.com/geany/geany/issues/2540) feature request. Will study that further.