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

Unified Diff: base/process/launch.h

Issue 831373002: Move ForkWithFlags from sandbox/ to base/ and plug it into LaunchProcess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | base/process/launch_posix.cc » ('j') | base/process/process.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/launch.h
diff --git a/base/process/launch.h b/base/process/launch.h
index 0450ddf021e0faa7936bf7118951d050e185251b..dda2e3f3ba6d283278f7a6f957b07d5e4892bbbf 100644
--- a/base/process/launch.h
+++ b/base/process/launch.h
@@ -114,7 +114,9 @@ struct BASE_EXPORT LaunchOptions {
bool new_process_group;
#if defined(OS_LINUX)
- // If non-zero, start the process using clone(), using flags as provided.
+ // If non-zero, start the process using clone(), using flags as provided. Note
+ // that it is not safe to start a process with non-zero clone_flags if
+ // multiple threads are running.
jln (very slow on Chromium) 2015/01/06 00:22:31 1. Explain that the clone flags may not include a
rickyz (no longer on Chrome) 2015/01/06 02:45:37 Done.
int clone_flags;
// By default, child processes will have the PR_SET_NO_NEW_PRIVS bit set. If
« no previous file with comments | « no previous file | base/process/launch_posix.cc » ('j') | base/process/process.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698