X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=NativeLauncher%2Flauncher%2Flib%2Fcore_runtime.cc;h=5f1be89cfe28738c050c6cb9a411acfbcf41e283;hb=841a169fddd9c86764e081fbe2c9e56eab583785;hp=385bb60a9aa0fcd29fab2a23c93b36f5f9a50f76;hpb=41d0e29ece8438f8a0eb529c6f32fa6e1c961081;p=platform%2Fcore%2Fdotnet%2Flauncher.git diff --git a/NativeLauncher/launcher/lib/core_runtime.cc b/NativeLauncher/launcher/lib/core_runtime.cc index 385bb60..5f1be89 100644 --- a/NativeLauncher/launcher/lib/core_runtime.cc +++ b/NativeLauncher/launcher/lib/core_runtime.cc @@ -189,14 +189,6 @@ static void initEnvForSpecialFolder() } } -// terminate candidate process when language changed -// icu related data (CultureInfo, etc) should be recreated. -static void langChangedCB(keynode_t *key, void* data) -{ - _INFO("terminiate candidate process to update language."); - exit(0); -} - static void setLang() { char* lang = vconf_get_str(VCONFKEY_LANGSET); @@ -344,6 +336,7 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode) // So, plugin initialize should be called before creating threads. if (initializePluginManager(appType) < 0) { _ERR("Failed to initialize PluginManager"); + return -1; } // checkInjection checks dotnet-launcher run mode @@ -474,9 +467,6 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode) } if (launchMode == LaunchMode::loader) { - // terminate candidate process if language is changed. - // CurrentCulture created for preloaded dlls should be updated. - vconf_notify_key_changed(VCONFKEY_LANGSET, langChangedCB, NULL); // preload libraries and manage dlls for optimizing startup time preload(); @@ -549,12 +539,12 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i _ERR("executable path is null"); return -1; } -#if 0 + if (!isFile(path)) { _ERR("File not exist : %s", path); return -1; } -#endif + // VD has their own signal handler. if (!pluginHasLogControl()) { registerSigHandler(); @@ -607,8 +597,6 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i setSwitch("Switch.System.Diagnostics.StackTrace.ShowILOffsets", true); - vconf_ignore_key_changed(VCONFKEY_LANGSET, langChangedCB); - pluginBeforeExecute(); _INFO("execute assembly : %s", path);