Tapio Aura Kelloniemi schreef:
On Sat, May 13, 2006 at 12:36:03PM 0000, Warren Wilder wrote:
How do you check whether any of the running processes is using the
shared library xxx.so?
Well, perhaps I'm misunderstunding something, but I have assumed that when
a shared library is loaded into memory when a process is started (or via
dlopen) the disk file it comes from is no more read. After loading the
library file may be deleted without affecting the running process in any
way.
Actually I have confirmed this by messing up my glibc installation few
years
ago. I was not able to start any new executable, but all old bash binaries
run as expected. Please correct me if I actually confimred some other
phenomenon.
In a way that is true. I am not sure whether the whole of the library is
loaded into memory if only one function is called, though. I am sure
somebody does? (I think I heard both ways are possible.)
Anyway, I think your remark is more related to the question that Alberto
was asking. If a running program is using a certain library, which is
loaded into memory, you can overwrite the library that is on disk, sure.
That doesn't solve any problem though, it just doesn't introduce
problems by itself. If there are internal differences between versions,
you want to know beforehand which programs need to go onto your test
list, because you want to use these program again. :-)
Warren
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page