diff options
Diffstat (limited to 'base/process_util_linux.cc')
-rw-r--r-- | base/process_util_linux.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc index ba2d8cd..7560257 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) { |