External modes are now loaded with RTLD_LOCAL
This commit is contained in:
parent
5bb351d450
commit
9d5e8e2e5a
@ -412,7 +412,7 @@ static void* start_thread(void* data) {
|
|||||||
} else {
|
} else {
|
||||||
char* plugins_dir = utils_concat(2, config_dir, "/plugins/");
|
char* plugins_dir = utils_concat(2, config_dir, "/plugins/");
|
||||||
char* full_name = utils_concat(2, plugins_dir, mode);
|
char* full_name = utils_concat(2, plugins_dir, mode);
|
||||||
void* plugin = dlopen(full_name, RTLD_LAZY);
|
void* plugin = dlopen(full_name, RTLD_LAZY | RTLD_LOCAL);
|
||||||
free(full_name);
|
free(full_name);
|
||||||
free(plugins_dir);
|
free(plugins_dir);
|
||||||
init = dlsym(plugin, "init");
|
init = dlsym(plugin, "init");
|
||||||
|
Loading…
Reference in New Issue
Block a user