From: jiangyuwei Date: Mon, 11 Mar 2024 07:40:22 +0000 (+0800) Subject: [M120 Migration][VD] Remove accessing oom_score_adj in zygote process X-Git-Tag: accepted/tizen/unified/20240315.155154~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F307497%2F3;p=platform%2Fframework%2Fweb%2Fchromium-efl.git [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 --- 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;