Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: Anybody out there? (ETXTBSY) | Date | 28 Aug 1998 02:57:59 GMT |
| |
Followup to: <19980827184637.20618.qmail@defiant.cqc.com> By author: "pacman" <pacman-kernel@cqc.com> In newsgroup: linux.dev.kernel > > Richard Henderson writes the following: > > > >ETXTBSY is explicitly not set on shared libraries. If you turn > >it on, it is impossible to upgrade libc.so. > > Just like it's impossible to upgrade init? or /bin/sh? I think you're > overlooking something here :) >
Upgrading /bin/sh is perfectly doable, as is upgrading libc.so. You have to unlink() the binary and then rename() the new one to the proper name, of course without needing to run a new binary in between. mv -f does this correctly, and ETXTBSY isn't a problem.
-hpa
-- PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74 See http://www.zytor.com/~hpa/ for web page and full PGP public key I am Bahá'í -- ask me about it or see http://www.bahai.org/ "To love another person is to see the face of God." -- Les Misérables
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |