Randall R Schulz wrote:
That's because the software development tools don't overwrite existing files. They move / rename or delete those files and create new ones. This prevents failure of either the tools or the programs using them.
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 :-) /Per Jessen, Zürich