On Wednesday 09 August 2006 3:14 am, Per Jessen wrote:
Just a quick update in case someone's interested - I've set up the daemon to use inotify() and when I use 'scp' to copy in a new library from my development system, I see the following events: (not monitoring for IN_ACCESS and IN_ATTRIB)
IN_OPEN IN_MODIFY . . . . IN_CLOSE_WRITE
So 'scp' certainly doesn't do any move, rename or delete, but plainly overwrites the library file. I guess shared libraries are just read in by the loader, and then forgotten about.
Also, by default inotify will follow symlinks by default, which is quite handy. The actual library in this case is "/usr/lib/libclamav.so.1.0.17", but of course it has a few symlinks, so I just monitor "/usr/lib/libclamav.so" - I would still prefer not having to hardcode "/usr/lib", but I can live with it :-) What happens in the case where you change the location of a symbol in the shared library.
--
Jerry Feldman