summaryrefslogtreecommitdiffstats
path: root/base/process/launch.h
diff options
context:
space:
mode:
authorrickyz <rickyz@chromium.org>2015-06-18 17:18:46 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-19 00:19:11 +0000
commit179aeb7b6d1d9bb4c58a1abdc3929df197116056 (patch)
tree3d6fdeb776419bff38bda0bfe15648aaeda96cb5 /base/process/launch.h
parentb75d248a47efc993c55f1cbd06034eb860897ee7 (diff)
downloadchromium_src-179aeb7b6d1d9bb4c58a1abdc3929df197116056.zip
chromium_src-179aeb7b6d1d9bb4c58a1abdc3929df197116056.tar.gz
chromium_src-179aeb7b6d1d9bb4c58a1abdc3929df197116056.tar.bz2
Build ForkWithFlags and part of NamespaceSandbox under nonsfi newlib.
These functions are needed for enabling separate PID namespaces for nonsfi newlib NaCl processes. This change is an adaptation of hidehiko@'s https://codereview.chromium.org/1161933003/ with some additional functions from NamespaceSandbox added. BUG=460972 Review URL: https://codereview.chromium.org/1176413003 Cr-Commit-Position: refs/heads/master@{#335175}
Diffstat (limited to 'base/process/launch.h')
-rw-r--r--base/process/launch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/process/launch.h b/base/process/launch.h
index 56f27a8..0e42cd0 100644
--- a/base/process/launch.h
+++ b/base/process/launch.h
@@ -297,7 +297,7 @@ void ReplaceBootstrapPort(const std::string& replacement_bootstrap_name);
// binary. This should not be called in production/released code.
BASE_EXPORT LaunchOptions LaunchOptionsForTest();
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_NACL_NONSFI)
// A wrapper for clone with fork-like behavior, meaning that it returns the
// child's pid in the parent and 0 in the child. |flags|, |ptid|, and |ctid| are
// as in the clone system call (the CLONE_VM flag is not supported).