Another new ABI for fanotify
Another new ABI for fanotify
Posted Nov 12, 2009 3:57 UTC (Thu) by mezcalero (subscriber, #45103)Parent article: Another new ABI for fanotify
i.e. what inotify currently sucks at is to use it for reading files or devices nodes that have just been closed. i.e. a loop such as "for (;;) { wait_until_someone_closes_a_file_after_writing(); check_what_changed(); }", since the check_what_changed() call might itself open() and close() the file/device node, one would enter a loop here which is very hard to break, since one cannot distuingish between events that were triggered by the process itself or by someone else. An easy fix this could be to include the PID of the process that triggered an event. That way programs could simply ignore all events triggered by themselves.
