Re: Anybody out there? (ETXTBSY)

pacman (pacman-kernel@cqc.com)
Fri, 28 Aug 1998 00:44:29 -0500 (EST)


H. Peter Anvin writes the following:
>
>Followup to: <19980827023536.C9225@dot.cygnus.com>
>By author: Richard Henderson <rth@cygnus.com>
>In newsgroup: linux.dev.kernel
>>
>> ETXTBSY is explicitly not set on shared libraries. If you turn
>> it on, it is impossible to upgrade libc.so.
>>
>
>That shouldn't be; it just means it has to be unlinked before it can
>be replaced (if you're doing it by hand, mv -f). It has to, anyway,
>to avoid catastrophic failure of running programs.

Indeed... If you attempt to upgrade libc.so by doing a "cat newlibc.so >
/lib/libc.so", then all processes using libc.so are going to die horribly.
Better hope that cat is statically linked, or else it's probably going to die
(ironically as a result of its own actions) before having finished. Then you
have a truncated libc.so, and the real fun begins.

-- 
Alan Curry

- 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