lkml.org 
[lkml]   [1998]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Anybody out there? (ETXTBSY)
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2011 Jasper Spaans