Opening plugin with lazy symbol resolving fixes a crash on NetBSD/sparc64
This commit is contained in:
parent
5ebc02c8e9
commit
848e77ed8b
@ -38,7 +38,7 @@ Account * account_new(char const * type, char const * name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
sprintf(filename, "%s/%s/%s.so", PLUGINDIR, type, name);
|
sprintf(filename, "%s/%s/%s.so", PLUGINDIR, type, name);
|
||||||
if((account->handle = dlopen(filename, RTLD_NOW)) == NULL
|
if((account->handle = dlopen(filename, RTLD_LAZY)) == NULL
|
||||||
|| (account->plugin = dlsym(account->handle,
|
|| (account->plugin = dlsym(account->handle,
|
||||||
"account_plugin")) == NULL)
|
"account_plugin")) == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user