From e72831cac8859a56b03ec76b1c1d4b7fe7409b9d Mon Sep 17 00:00:00 2001 From: "jln@chromium.org" Date: Tue, 22 May 2012 16:23:53 +0000 Subject: 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 --- content/zygote/zygote_linux.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'content/zygote') 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) -- cgit v1.1