add dlopen option explicitly(RTLD_LOCAL) accepted/tizen/unified/20200617.055851 submit/tizen/20200615.073011 submit/tizen/20200616.105347
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 15 Jun 2020 07:18:39 +0000 (16:18 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 15 Jun 2020 07:23:28 +0000 (16:23 +0900)
Change-Id: I0569fbe5b86d0322029bb3eac8fad12d17a4b159

supervisor/PluginMapper.cpp

index 993c831db24d2c4a031987b48711181dd0664847..b643b90035f23f6fe69eaadaf3590aa3f1815807 100644 (file)
@@ -69,7 +69,7 @@ int PluginMapper::loadPlugins()
 
 PluginMapper::PluginPair PluginMapper::loadClass(const std::string &pluginFile)
 {
-       void *handle = dlopen(pluginFile.c_str(), RTLD_LAZY);
+       void *handle = dlopen(pluginFile.c_str(), RTLD_LAZY | RTLD_LOCAL);
        if (NULL == handle) {
                ERR("dlopen(%s) Fail(%s)", pluginFile.c_str(), dlerror());
                throw ModesEx(ModesEx::SYSTEM_ERROR);