Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a program, I cannot change the code.

It calls some .so file's function, but don't delete the object in the end. When the owner of the program tries to update the program he kills it and send the update, but the .so file is in use so he can't update the file.

It's on an AIX platform.

Is it possible to force to kill the .so file? If I do a fuser -f on the file it returns nothing.

Can I create another program to kill the program, is there any command to do that?

share|improve this question

migrated from stackoverflow.com Feb 13 '12 at 18:36

This question came from our site for professional and enthusiast programmers.

1  
Tis called a reboot :) That's why system updates usually require restarting a machine. Even if you can replace the file on disk you can't replace it in memory on the fly. –  Billy ONeal Feb 13 '12 at 18:23
    
i cannot reboot the machine –  demonofnight Feb 13 '12 at 18:30
    
@BillyONeal: There is only one platform which requires restarts for updates. On most non MS platform there is no file locking or anything which would prevent changing a file on disk which is in use, the processes which have the file open simply get a private copy which is unlinked from the underlying filesystem if a open file is changed. To make use of the new file a restart of the process which uses the file is usually sufficient. –  drhirsch Feb 13 '12 at 18:36
    
why can't he update the file when it is in use? –  stew Feb 13 '12 at 19:02
    
@drhirsch, then perhaps you can explain that to Apple, who do require a reboot for many updates. Even a Safari update on a Mac frequently requires a reboot. –  John Gardeniers Feb 13 '12 at 20:53

1 Answer 1

up vote 1 down vote accepted

It sounds like you need slibclean command, which unloads all shared libraries which are not used by a program - http://unix.derkeiler.com/Newsgroups/comp.unix.aix/2003-12/0316.html

Although I cannot say I fully understand the question.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.