diff --git a/man7/inotify.7 b/man7/inotify.7 index 43b89e033..100895938 100644 --- a/man7/inotify.7 +++ b/man7/inotify.7 @@ -622,6 +622,13 @@ Note that the event queue can overflow. In this case, events are lost. Robust applications should handle the possibility of lost events gracefully. +For example, it may be necessary to rebuild part or all of +the application cache. +(One simple, but possibly expensive, +approach is to close the inotify file descriptor, empty the cache, +create a new inotify file descriuptor, +and then re-create watches and cache entries +for the objects to be monitored.) The inotify API identifies affected files by filename. However, by the time an application processes an inotify event,