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

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: Remove explicit content:: scope 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..cf57999131d1dd5ccadedd7e306b8b22eb094d5a 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(kZygoteIdFd); // Another socket from the browser.
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