]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/common/eal_common_options.c
eal: suppress error log on multi-process hotplug
[dpdk.git] / lib / eal / common / eal_common_options.c
index 97ab6e00fd51f5a8d43d9b20d7975efe9c5abee2..ff5861b5f3ef899ab16ebbbe0d848cc937d74714 100644 (file)
@@ -509,10 +509,14 @@ is_shared_build(void)
        }
 
        while (len >= minlen) {
+               void *handle;
+
                /* check if we have this .so loaded, if so - shared build */
                RTE_LOG(DEBUG, EAL, "Checking presence of .so '%s'\n", soname);
-               if (dlopen(soname, RTLD_LAZY | RTLD_NOLOAD) != NULL) {
+               handle = dlopen(soname, RTLD_LAZY | RTLD_NOLOAD);
+               if (handle != NULL) {
                        RTE_LOG(INFO, EAL, "Detected shared linkage of DPDK\n");
+                       dlclose(handle);
                        return 1;
                }