summaryrefslogtreecommitdiffstats
path: root/content/zygote
diff options
context:
space:
mode:
authorjln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-22 16:23:53 +0000
committerjln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-22 16:23:53 +0000
commite72831cac8859a56b03ec76b1c1d4b7fe7409b9d (patch)
tree3c94ac768191e1e02fc110e709346d3b63249373 /content/zygote
parent55bb20786708942e37293a525cc94a3dd7875086 (diff)
downloadchromium_src-e72831cac8859a56b03ec76b1c1d4b7fe7409b9d.zip
chromium_src-e72831cac8859a56b03ec76b1c1d4b7fe7409b9d.tar.gz
chromium_src-e72831cac8859a56b03ec76b1c1d4b7fe7409b9d.tar.bz2
Zygote: create variables for magic fd numbers
The magic number "7" was used across source files to denote the file descriptor for the dummy fd. BUG=None TEST=None NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10392176 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/zygote')
-rw-r--r--content/zygote/zygote_linux.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc
index 9c6a329..cf57999 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)