tail inotify resources exhausted
I am using inotify to watch a directory for any file changes. But the problem is, the files are coming in fast which exhausts inotify's resources. It opens thousands of file handlers. Is there a way such that, when I get a notification, I could close the file handler right away? For example, if a file is created in the given directory, I want the notifier to give me the path of that file, close the file handler, and wait for other changes?