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

Unified Diff: base/process_util_linux.cc

Issue 119335: Linux: refactor zygote support (Closed)
Patch Set: ... Created 11 years, 6 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 | « base/process_util.h ('k') | base/reserved_file_descriptors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_linux.cc
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
index ba2d8cddc0c58f5c2ba0da8d6234245d3644b0a7..756025758267481d81ceabcad510c62e06f68fcc 100644
--- a/base/process_util_linux.cc
+++ b/base/process_util_linux.cc
@@ -17,7 +17,6 @@
#include "base/logging.h"
#include "base/string_tokenizer.h"
#include "base/string_util.h"
-#include "base/zygote_manager.h"
namespace {
@@ -86,22 +85,6 @@ FilePath GetProcessExecutablePath(ProcessHandle process) {
return FilePath(std::string(exename, len));
}
-bool ForkApp(const std::vector<std::string>& argv,
- const file_handle_mapping_vector& fds_to_remap,
- ProcessHandle* process_handle) {
- ZygoteManager* zm = ZygoteManager::Get();
- if (!zm)
- return LaunchApp(argv, fds_to_remap, false, process_handle);
-
- pid_t pid = zm->LongFork(argv, fds_to_remap);
- if (pid < 0)
- return false;
-
- if (process_handle)
- *process_handle = pid;
- return true;
-}
-
bool LaunchApp(const std::vector<std::string>& argv,
const file_handle_mapping_vector& fds_to_remap,
bool wait, ProcessHandle* process_handle) {
« no previous file with comments | « base/process_util.h ('k') | base/reserved_file_descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698