Re: updating a shared lib crashes running programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fre 2004-10-22 klockan 10:04 +0200 skrev Dimitri Tombroff:

> I really cannot understand what could go wrong when replacing a library, 
> the running programs are not supposed to reload it.

It does. The library isn't copied to the memory space of the process.
Instead, it's "mapped" into the process. If you overwrite the file, the
old library is wiped from the system (disk and ram) completely.

Try this instead:

$ mv /home/nxuser/pp/lib/libstack.so /home/nxuser/pp/lib/libstack.so.old
$ cp libstack.so /home/nxuser/pp/lib/libstack.so
$ rm /home/nxuser/pp/lib/libstack.so.old

Or use the "install" command.

/abo



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux