What if lib.B had another dependency? To deal with this dlclose would have to query every loaded module for its dependencies and then decide if lib.B could safely be unloaded.
What if lib.B had been loaded explicitly somewhere else such that it did not appear in any other module's dependency list?
replies(1):