Unix Technical Forum

slibclean command usage

This is a discussion on slibclean command usage within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi At what circumstances, slibclean should be used ? Suppose, I remove a shared library file which is still ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 10:05 PM
Lo, Michael [CAR:VR30:EXCH]
 
Posts: n/a
Default slibclean command usage

Hi

At what circumstances, slibclean should be used ?


Suppose, I remove a shared library file which is still loaded on global
text segment with the "rm" command and put a new shared library in.
Will program start always reference to the newly loaded shared library
in the shared text segment ? I think installp always rm old files if it
is not an update fileset.


Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 10:07 PM
Gary R. Hook
 
Posts: n/a
Default Re: slibclean command usage

Lo, Michael [CAR:VR30:EXCH] wrote:
> Hi
>
> At what circumstances, slibclean should be used ?


When you need to get the system to stop using a module for
some reason. And the module is no longer in use by any
process.

> Suppose, I remove a shared library file which is still loaded on global
> text segment with the "rm" command and put a new shared library in.


No problem.

> Will program start always reference to the newly loaded shared library
> in the shared text segment?


Yes. If the module is in use and you "rm" it, then you remove the
filesystem entry, not the file. The file will get fully removed once
it is no longer in use by the shared lib segment. In the meantime,
creating a new file causes a new inode to be used, and the loader
detects this and loads the new copy. (It keeps track by filesystem/
inode, which is always unique.)

--
Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
__________________________________________________ ______________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com