On Thursday, 17 September 2015 at 15:12:43 UTC, Jacob Carlborg wrote:
On 2015-09-17 00:29, ponce wrote:
[...]

Easiest would be to not unload the library. If that doesn't work, replace "_dyld_register_func_for_add_image" [1] with "dyld_register_image_state_change_handler" [2].

[1] https://github.com/D-Programming-Language/druntime/blob/master/src/rt/sections_osx.d#L76

[2] http://www.opensource.apple.com/source/dyld/dyld-353.2.3/include/mach-o/dyld_priv.h

dyld_register_image_state_change_handler does not provide a way to unregister the callback either, so I don't see how this helps.

Reply via email to