Re: Anybody out there? (ETXTBSY)

H. Peter Anvin (hpa@transmeta.com)
28 Aug 1998 21:34:54 GMT


Followup to: <19980828135314.A15556@elektroni.ee.tut.fi>
By author: Petri Kaukasoina <kaukasoi@elektroni.ee.tut.fi>
In newsgroup: linux.dev.kernel
>
> On Fri, Aug 28, 1998 at 02:57:59AM +0000, H. Peter Anvin wrote:
> > 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.
>
> why unlink() ? rename() should be enough and then there's no time when
> /bin/sh or libc is missing.
>

You can't rename() onto a file that exists.

-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