theoretically question: is dlopen() loading a update lib or send back the old handler?

Fri Nov 27 20:05:00 GMT 2015

Hello mailing-list,

i have a theoretically question to the function dlopen()!
The manual describes that a loaded library is not loaded again in the
main memory, if dlopen() is called again. A Handler take a reference
back to the loaded library.

But what do the function if the library is updated while using? An example:

Program A is started and loaded the library in main memory.
Now I update the system and the (only new release). Program B is starting and call dlopen().
What will happen?
Noticed dlopen() the new file and load the new release of the library in
the memory or get it the handler
of the loaded library back?

I loaded the glibc-2.12-1.166.el6.src.rpm from the oracle mirrow and
tried to study the c-code.
But my c-skills are not well enoth.

Thank you very much for a answer!

Best regard Meho

More information about the Libc-help mailing list