Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2391)

Unified Diff: content/browser/zygote_host/zygote_host_impl_linux.cc

Issue 246653008: AdjustRendererOOMScore isn't execute in linux. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/zygote_host/zygote_host_impl_linux.cc
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc
index a3e8e611d3728e8714fe375429fbf04542849c73..435645e8d396664c593d9ace14e4df8f91bd4489 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc
@@ -433,7 +433,9 @@ void ZygoteHostImpl::AdjustRendererOOMScore(base::ProcessHandle pid,
adj_oom_score_cmdline.push_back(base::IntToString(score));
base::ProcessHandle sandbox_helper_process;
- if (base::LaunchProcess(adj_oom_score_cmdline, base::LaunchOptions(),
+ base::LaunchOptions options;
+ options.allow_new_privs = true;
jln (very slow on Chromium) 2014/04/24 00:17:59 Please add a comment along the lines of "sandbox_h
+ if (base::LaunchProcess(adj_oom_score_cmdline, options,
&sandbox_helper_process)) {
base::EnsureProcessGetsReaped(sandbox_helper_process);
}
@@ -505,6 +507,10 @@ base::TerminationStatus ZygoteHostImpl::GetTerminationStatus(
return static_cast<base::TerminationStatus>(status);
}
+bool ZygoteHostImpl::UsingSUIDSandbox() const {
+ return using_suid_sandbox_;
+}
+
pid_t ZygoteHostImpl::GetPid() const {
return pid_;
}

Powered by Google App Engine
This is Rietveld 408576698