Merge pull request #151 from JongHeonChoi/fx_loader_option
authorwscho77 <ws77.cho@samsung.com>
Fri, 30 Sep 2016 07:00:33 +0000 (16:00 +0900)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2016 07:00:33 +0000 (16:00 +0900)
use RTLD_NOW option in the loader for launching time performance

loader/wrt_loader.cc

index 6696498..4ccdb49 100644 (file)
@@ -19,7 +19,7 @@
 // loader file must have "User" execute label, because launchpad daemon runs 
 // with "System::Privileged" label.
 int main(int argc, char* argv[]) {
-  void* handle = dlopen("/usr/bin/xwalk_runtime", RTLD_LAZY);
+  void* handle = dlopen("/usr/bin/xwalk_runtime", RTLD_NOW);
   if (!handle) {
     dlog_print(DLOG_DEBUG, "XWALK", "Error loading xwalk_runtime");
     return false;