From edcec9fa9086599d56bffe7fdb2c1f05ae7a3ad8 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 2 Jun 2019 15:45:12 +0200 Subject: File backend peer query --- plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin.c') diff --git a/plugin.c b/plugin.c index 674e992..d8500fe 100644 --- a/plugin.c +++ b/plugin.c @@ -19,7 +19,7 @@ static size_t attached_libraries = 0; static void** attached_library = NULL; static void* plugin_attach(char* path){ - void* module = dlopen(path, RTLD_LAZY); + void* module = dlopen(path, RTLD_NOW); if(!module){ fprintf(stderr, "Failed to load module %s\n", dlerror()); -- cgit v1.2.3