compositor: Load modules with RTLD_NOW so we get missing symbols up front
Otherwise we have no way to clean up when we hit something undefined.
This commit is contained in:
+1
-1
@@ -3336,7 +3336,7 @@ load_module(const char *name, const char *entrypoint, void **handle)
|
|||||||
snprintf(path, sizeof path, "%s", name);
|
snprintf(path, sizeof path, "%s", name);
|
||||||
|
|
||||||
weston_log("Loading module '%s'\n", path);
|
weston_log("Loading module '%s'\n", path);
|
||||||
module = dlopen(path, RTLD_LAZY);
|
module = dlopen(path, RTLD_NOW);
|
||||||
if (!module) {
|
if (!module) {
|
||||||
weston_log("Failed to load module: %s\n", dlerror());
|
weston_log("Failed to load module: %s\n", dlerror());
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user