Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: Anybody out there? (ETXTBSY) | Date | 29 Aug 1998 00:54:30 GMT |
| |
Followup to: <yttzpcp9ic3.fsf@krilin.dc.fi.udc.es> By author: "Juan J. Quintela" <quintela@krilin.dc.fi.udc.es> In newsgroup: linux.dev.kernel > > Hi, > > From the man page of rename: > > int rename(const char *oldpath, const char *newpath); > > ..... > If newpath already exists it will be atomically overwrit > ^^^^^^^^ > ten (subject to a few conditions - see ERRORS below), so > ^^^ > that there is no point at which another process attempting > to access newpath will find it missing. > > You don't want to overwrite the existing libc.so or your running > binaries running against it will stop work in that moment. > > Cheers, Juan. >
This is a man page bug; it doesn't actually overwrite (it unlinks the old file). I didn't realize rename() did this, but this is a Good Thing[TM].
-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
| |