Reputation: 333
Assume I have a process X and then it has loaded some shared library Y into its address space. I then manage to swap this library Y with a different version Yprime, what would be the effect on the process?
Upvotes: 3
Views: 1013
Reputation: 799240
No effect. The loader holds the library open until the process ends (or until the library is unloaded via dlclose(3)
), which means that it keeps using the same (now deleted) library since its blocks still exist on disk.
Upvotes: 1