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

Unified Diff: content/zygote/zygote_linux.cc

Issue 10392176: Zygote: create variables for magic fd numbers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor comment update Created 8 years, 7 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
« no previous file with comments | « content/common/zygote_commands_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/zygote/zygote_linux.cc
diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc
index 9c6a32911494b1fa77004ad59fa970f50c0ce318..d166465e74de383ae11233885d5d7936f7a9a512 100644
--- a/content/zygote/zygote_linux.cc
+++ b/content/zygote/zygote_linux.cc
@@ -35,8 +35,6 @@ namespace content {
namespace {
-const int kZygoteIdDescriptor = 7;
-
// NOP function. See below where this handler is installed.
void SIGCHLDHandler(int signal) {
}
@@ -413,7 +411,7 @@ base::ProcessId Zygote::ReadArgsAndFork(const Pickle& pickle,
close(kBrowserDescriptor); // Our socket from the browser.
if (UsingSUIDSandbox())
- close(kZygoteIdDescriptor); // Another socket from the browser.
+ close(content::kZygoteIdFd); // Another socket from the browser.
brettw 2012/05/21 17:52:05 You're already in content, so remove "content::".
base::GlobalDescriptors::GetInstance()->Reset(mapping);
#if defined(CHROMIUM_SELINUX)
« no previous file with comments | « content/common/zygote_commands_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698