From: Ray Strode Date: Tue, 25 Aug 2009 11:43:09 +0000 (-0400) Subject: [utils] Force modules to stay resident after close X-Git-Tag: 0.7.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f326ccc8bfa9e3608817f1d0e819b8ca81068b;p=thirdparty%2Fplymouth.git [utils] Force modules to stay resident after close 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. --- diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 35b466a4..eb334666 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -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) {