From a3bd70aedb09958030b7d4be42ce59a9397c73a7 Mon Sep 17 00:00:00 2001 From: jiangyuwei Date: Mon, 11 Mar 2024 15:40:22 +0800 Subject: [PATCH] [M120 Migration][VD] Remove accessing oom_score_adj in zygote process To solve smack error, prevent to access /proc/pid/oom_score_adj in zygote process. Moreover, even if we write oom_score_adj, kernel have denied it from Tizen2.4 platform. So it is better to remove accessing it. Reference: - https://review.tizen.org/gerrit/#/c/291135/ Change-Id: Ia22e5f2f8a85585c9a17a172089df9f527be34aa Signed-off-by: jiangyuwei --- content/browser/child_process_launcher_helper_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/browser/child_process_launcher_helper_linux.cc b/content/browser/child_process_launcher_helper_linux.cc index 7bd9454..612d5f2 100644 --- a/content/browser/child_process_launcher_helper_linux.cc +++ b/content/browser/child_process_launcher_helper_linux.cc @@ -97,7 +97,7 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThread( GetProcessType()); *launch_result = LAUNCH_RESULT_SUCCESS; -#if !BUILDFLAG(IS_OPENBSD) +#if !BUILDFLAG(IS_OPENBSD) && !BUILDFLAG(IS_TIZEN_TV) if (handle) { // It could be a renderer process or an utility process. int oom_score = content::kMiscOomScore; -- 2.7.4