lkml.org 
[lkml]   [1996]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Linux 2.0.0 fails to return Text File Busy for .so files
Date
Hi,

> I learned this that hard way when I tried to install a new copy
> of libc.so over the old one. Hard crash. Repeated it, same result. I
> think if a shared library is busy, any attempt to modify it should return
> ETXTBSY, right?

Zzzzt - and you can't replace your libraries anymore because at least libc.so
is almost always in use.

It's ok to unlink(2) (rm) a library because as long as the library's inode
is still open you the file is still accessible and that's what the current
code does. You just shouldn't do something like rm /lib/libc.so* but
install the new library which uses a different filename, run ldconfig,
then rm the old, now unnecessary library file.

Ralf


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.045 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site