Re: updating a shared lib crashes running programs

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, this isn't the _best_ way:

> $ 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

The problem is that there is a time when there is no DSO available with
that name.  Just use

$ cp libstack.so /home/nxuser/pp/lib/libstack.so.new
$ mv /home/nxuser/pp/lib/libstack.so.new home/nxuser/pp/lib/libstack.so

This will atomically replace the names.

- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBeSgv2ijCOnn/RHQRAq5tAJ0XjabEbORorUPH994T/uw6APf0IwCgni7o
QiupU9/JBGWqtHjbT0v3tH4=
=bdpS
-----END PGP SIGNATURE-----


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

  Powered by Linux