Some modules (the label plugin in particular) use
libraries with static data that don't do well with
being unmapped and remapped later.
This commit changes the module loading call so that
plugins aren't unmapped at close time (the close
is effectively ignored). This simplifies things
for now.
At some point we may want to make it decidable on
a per plugin basis.
assert (module_path != NULL);
- handle = (ply_module_handle_t *) dlopen (module_path, RTLD_NOW | RTLD_LOCAL);
+ handle = (ply_module_handle_t *) dlopen (module_path,
+ RTLD_NODELETE |RTLD_NOW | RTLD_LOCAL);
if (handle == NULL)
{