From: Woongsuk Cho Date: Thu, 20 Jun 2024 01:53:34 +0000 (+0900) Subject: Disable debugger for loader mode X-Git-Tag: accepted/tizen/unified/20240621.010434~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d857e9010cafad4bd1f0ee3e964aaf45da0782e2;p=platform%2Fcore%2Fdotnet%2Flauncher.git Disable debugger for loader mode To prevent smack issue related to clr-debug-pipe-xxx file, disable debugging feature in the runtime side --- diff --git a/NativeLauncher/launcher/lib/core_runtime.cc b/NativeLauncher/launcher/lib/core_runtime.cc index 94c7326..77b3a27 100644 --- a/NativeLauncher/launcher/lib/core_runtime.cc +++ b/NativeLauncher/launcher/lib/core_runtime.cc @@ -359,6 +359,11 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode) // Disable config cache to set environment after coreclr_initialize() putenv(const_cast("COMPlus_DisableConfigCache=1")); + // Disable debugger for loader + if (launchMode == LaunchMode::loader) { + putenv(const_cast("DOTNET_EnableDebugger=0")); + } + // Set environment variable for System.Environment.SpecialFolder initEnvForSpecialFolder();