projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc1535
)
compositor: Load modules with RTLD_NOW so we get missing symbols up front
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 26 Jul 2012 15:39:26 +0000
(11:39 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 26 Jul 2012 15:39:26 +0000
(11:39 -0400)
Otherwise we have no way to clean up when we hit something undefined.
src/compositor.c
patch
|
blob
|
history
diff --git
a/src/compositor.c
b/src/compositor.c
index
ed887a4
..
746ff85
100644
(file)
--- a/
src/compositor.c
+++ b/
src/compositor.c
@@
-3336,7
+3336,7
@@
load_module(const char *name, const char *entrypoint, void **handle)
snprintf(path, sizeof path, "%s", name);
weston_log("Loading module '%s'\n", path);
- module = dlopen(path, RTLD_
LAZY
);
+ module = dlopen(path, RTLD_
NOW
);
if (!module) {
weston_log("Failed to load module: %s\n", dlerror());
return NULL;