If my executable calls dlopen
to load a library but neglects to call dlclose
, the library will stay loaded until the process exits and the OS forces it to unload.
If I load a.so
which loads b.so
, then call dlclose
on a.so
, does the OS unload b.so
as well?
How does this compare with a similar scenario using the Microsoft equivalent, LoadLibraryEx
?