| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/process/launch.h" | 5 #include "base/process/launch.h" |
| 6 | 6 |
| 7 #include <dirent.h> | 7 #include <dirent.h> |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <signal.h> | 10 #include <signal.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/allocator/type_profiler_control.h" | 22 #include "base/allocator/type_profiler_control.h" |
| 23 #include "base/command_line.h" | 23 #include "base/command_line.h" |
| 24 #include "base/compiler_specific.h" | 24 #include "base/compiler_specific.h" |
| 25 #include "base/debug/debugger.h" | 25 #include "base/debug/debugger.h" |
| 26 #include "base/debug/stack_trace.h" | 26 #include "base/debug/stack_trace.h" |
| 27 #include "base/file_util.h" | 27 #include "base/file_util.h" |
| 28 #include "base/files/dir_reader_posix.h" | 28 #include "base/files/dir_reader_posix.h" |
| 29 #include "base/logging.h" | 29 #include "base/logging.h" |
| 30 #include "base/memory/scoped_ptr.h" | 30 #include "base/memory/scoped_ptr.h" |
| 31 #include "base/posix/eintr_wrapper.h" | 31 #include "base/posix/eintr_wrapper.h" |
| 32 #include "base/process_util.h" | 32 #include "base/process/kill.h" |
| 33 #include "base/process/process_metrics.h" |
| 33 #include "base/strings/stringprintf.h" | 34 #include "base/strings/stringprintf.h" |
| 34 #include "base/synchronization/waitable_event.h" | 35 #include "base/synchronization/waitable_event.h" |
| 35 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 36 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 36 #include "base/threading/platform_thread.h" | 37 #include "base/threading/platform_thread.h" |
| 37 #include "base/threading/thread_restrictions.h" | 38 #include "base/threading/thread_restrictions.h" |
| 38 | 39 |
| 39 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
| 40 #include <sys/ioctl.h> | 41 #include <sys/ioctl.h> |
| 41 #endif | 42 #endif |
| 42 | 43 |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 std::string* output, | 720 std::string* output, |
| 720 int* exit_code) { | 721 int* exit_code) { |
| 721 // Run |execve()| with the current environment and store "unlimited" data. | 722 // Run |execve()| with the current environment and store "unlimited" data. |
| 722 GetAppOutputInternalResult result = GetAppOutputInternal( | 723 GetAppOutputInternalResult result = GetAppOutputInternal( |
| 723 cl.argv(), NULL, output, std::numeric_limits<std::size_t>::max(), true, | 724 cl.argv(), NULL, output, std::numeric_limits<std::size_t>::max(), true, |
| 724 exit_code); | 725 exit_code); |
| 725 return result == EXECUTE_SUCCESS; | 726 return result == EXECUTE_SUCCESS; |
| 726 } | 727 } |
| 727 | 728 |
| 728 } // namespace base | 729 } // namespace base |
| OLD | NEW |