summaryrefslogtreecommitdiffstats
path: root/content/common/zygote_commands_linux.h
diff options
context:
space:
mode:
authormdempsky@chromium.org <mdempsky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 06:03:40 +0000
committermdempsky@chromium.org <mdempsky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 06:03:40 +0000
commitbc89a49ae11cf54108e9a5f110e59575e542e229 (patch)
treee45a060b2b2013e7dd69c03d339d52e907a3587a /content/common/zygote_commands_linux.h
parent33d3d3a8f71bbe47a13016d5f69c866bea1b72c7 (diff)
downloadchromium_src-bc89a49ae11cf54108e9a5f110e59575e542e229.zip
chromium_src-bc89a49ae11cf54108e9a5f110e59575e542e229.tar.gz
chromium_src-bc89a49ae11cf54108e9a5f110e59575e542e229.tar.bz2
Make PID translation sanity checks more robust
Instead of checking that the PID the kernel told us for the zygote happens to be one of our descendents, we have the zygote send us an extra message right away. This gives us a check of PID translation without any false positives or negatives. BUG=357670 Review URL: https://codereview.chromium.org/254093003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/zygote_commands_linux.h')
-rw-r--r--content/common/zygote_commands_linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/common/zygote_commands_linux.h b/content/common/zygote_commands_linux.h
index 893fb33..4c932ff 100644
--- a/content/common/zygote_commands_linux.h
+++ b/content/common/zygote_commands_linux.h
@@ -10,6 +10,10 @@
namespace content {
+// Contents of the initial message sent from the zygote to the browser right
+// after it starts.
+static const char kZygoteBootMessage[] = "ZYGOTE_BOOT";
+
// Contents of the initial message sent from the zygote to the browser when it
// is ready to go.
static const char kZygoteHelloMessage[] = "ZYGOTE_OK";