4 ms·
Reminds me of the differences between `cp` and `install` for putting .so files in place. `install` basically results in a new inode allowing for processes to k
by dveeden2 7y ago
Reminds me of the differences between `cp` and `install` for putting .so files in place.
`install` basically results in a new inode allowing for processes to keep a handle on the old version of the .so
`cp` copies the content over the old content, keeping the same inode. Now applications that had that .so open won't be happy.
- temac 7y agoBinaries are probably not mapped with MAP_SHARED, but I checked the mmap manual for MAP_PRIVATE and read: "It is unspecified whether changes made to the file after the mmap() call are visible in the mapped region." I learn something everyday...