]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[utils] Force modules to stay resident after close
authorRay Strode <rstrode@redhat.com>
Tue, 25 Aug 2009 11:43:09 +0000 (07:43 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 25 Aug 2009 11:43:09 +0000 (07:43 -0400)
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.

src/libply/ply-utils.c

index 35b466a46c41551723353a24378695cea4fb1ec1..eb33466630ab54d97870abd51b8522606074dabd 100644 (file)
@@ -676,7 +676,8 @@ ply_open_module (const char *module_path)
 
   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)
     {