Re: Finalizers are dangerous
Bill Torpey
Hi Frank:
toggle quoted messageShow quoted text
Why don’t we start over here and see if we can make some progress? If you’re OK with a solution based on a mama.properties setting, I can live with that. For the transport it seems to me that a property setting like the following could work: mama.<middleware>.transport.<name>.unload_on_close=0|1 And for the payload library: mama.payload.<id>.unload_on_close=0|1 If that works for you, I’ll work up a PR and maybe we can put this bad boy to bed ;-) Or feel free to suggest something different. (With the caveat that the dtor approach is not something I’m open to — nor does it solve the problem for our friends in Java and .Net land). Regards, Bill P.S. Note also that short-circuiting the dlclose plays much more nicely with tools like valgrind, which discards symbols when a shared library is closed.
|
|