reload .so without restarting process
Hatt Tom
net.study.sea@gmail.com
Mon Dec 2 03:01:00 GMT 2013
Thanks !
I have tried this method ,but the problem is the main process still
use old functions , though I have dlclose that .so and then load the
newer one .
what is the reason ?How could I fix this ?
2013/12/1 Sam Varshavchik <mrsam@courier-mta.com>:
> Hatt Tom writes:
>
>> hi:
>>
>> Is it possible to reload .so file withour restarting thr process ?
>>
>> As I need to update some functions in my .so , and it is not
>> pleasure to interrupt the main process . is there way to achive this?
>
>
> Only if you, yourself has manually loaded the .so with dlopen(). Then, you
> just dlclose() and dlopen() it again.
>
> man dlopen
>
>
--
Best Regards!
More information about the Gcc-help
mailing list