3

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?

earlence
  • 323
  • 1
  • 4
  • 11

1 Answers1

1

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.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358