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

Unified Diff: content/common/zygote_commands_linux.h

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/browser/zygote_host_impl_linux.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/zygote_commands_linux.h
diff --git a/content/common/zygote_commands_linux.h b/content/common/zygote_commands_linux.h
index fbd767c1f77906ecef455384e221fca188b92028..07452181145ed8cb6fc95b9ea1fc158ba5fc2790 100644
--- a/content/common/zygote_commands_linux.h
+++ b/content/common/zygote_commands_linux.h
@@ -11,6 +11,17 @@ namespace content {
// is ready to go.
static const char kZygoteHelloMessage[] = "ZYGOTE_OK";
+// File descriptors initialized by the Zygote Host
+const int kZygoteSocketPairFd = 3;
+const int kZygoteRendererSocketFd = 5;
+// This file descriptor is special. It is passed to the Zygote and a setuid
+// helper will be called to locate the process of the Zygote on the system.
+// This mechanism is used when multiple PID namespaces exist because of the
+// setuid sandbox.
+// It is very important that this file descriptor does not exist in multiple
+// processes.
+const int kZygoteIdFd = 7;
+
// These are the command codes used on the wire between the browser and the
// zygote.
enum {
« no previous file with comments | « content/browser/zygote_host_impl_linux.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698