updating a shared lib crashes running programs
Ulrich Drepper
drepper at redhat.com
Fri Oct 22 15:33:03 UTC 2004
-----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-----
More information about the users
mailing list