|
Am 27.10.2013 00:29 schröbte William Ahern:
[...] One potential gotcha is that this breaks module unloading. Because the second dlopen increments a reference count on the module, when Lua garbage collects the module and calls dlclose there'll still be a reference. Most people don't rely on module unloading, fortunately. Calling dlcose() on the handle immediately after dlopen() might resolve this issue, but I haven't tested it yet.
You could try `RTLD_NOLOAD`. See here[1]. [1]: http://comments.gmane.org/gmane.comp.lang.lua.general/102742. Philipp