Wednesday, 14 August 2013

inotify inconsistent behavior on symbolic links

inotify inconsistent behavior on symbolic links

I tried inotify calls. It worked ok to follow appending files. However,
being requested to monitor change of symbolic link, firstly, I had a hard
time to find that the event needed is IN_MOVE_SELF, and then blocking call
to read returned not by all actual modification events but by some. So I
had to use old sleep/readlink polling design instead.

No comments:

Post a Comment