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 <dirent.h> | 5 #include <dirent.h> |
6 #include <errno.h> | 6 #include <errno.h> |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <signal.h> | 8 #include <signal.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <sys/resource.h> | 10 #include <sys/resource.h> |
11 #include <sys/time.h> | 11 #include <sys/time.h> |
12 #include <sys/types.h> | 12 #include <sys/types.h> |
13 #include <sys/wait.h> | 13 #include <sys/wait.h> |
14 #include <unistd.h> | 14 #include <unistd.h> |
15 | 15 |
16 #include <iterator> | 16 #include <iterator> |
17 #include <limits> | 17 #include <limits> |
18 #include <set> | 18 #include <set> |
19 | 19 |
20 #include "base/allocator/type_profiler_control.h" | 20 #include "base/allocator/type_profiler_control.h" |
21 #include "base/command_line.h" | 21 #include "base/command_line.h" |
22 #include "base/compiler_specific.h" | 22 #include "base/compiler_specific.h" |
23 #include "base/debug/debugger.h" | 23 #include "base/debug/debugger.h" |
24 #include "base/debug/stack_trace.h" | 24 #include "base/debug/stack_trace.h" |
25 #include "base/eintr_wrapper.h" | |
26 #include "base/file_util.h" | 25 #include "base/file_util.h" |
27 #include "base/files/dir_reader_posix.h" | 26 #include "base/files/dir_reader_posix.h" |
28 #include "base/logging.h" | 27 #include "base/logging.h" |
29 #include "base/memory/scoped_ptr.h" | 28 #include "base/memory/scoped_ptr.h" |
| 29 #include "base/posix/eintr_wrapper.h" |
30 #include "base/process_util.h" | 30 #include "base/process_util.h" |
31 #include "base/stringprintf.h" | 31 #include "base/stringprintf.h" |
32 #include "base/synchronization/waitable_event.h" | 32 #include "base/synchronization/waitable_event.h" |
33 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 33 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
34 #include "base/threading/platform_thread.h" | 34 #include "base/threading/platform_thread.h" |
35 #include "base/threading/thread_restrictions.h" | 35 #include "base/threading/thread_restrictions.h" |
36 | 36 |
37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
38 #include <sys/ioctl.h> | 38 #include <sys/ioctl.h> |
39 #endif | 39 #endif |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 if (IsChildDead(process)) | 1259 if (IsChildDead(process)) |
1260 return; | 1260 return; |
1261 | 1261 |
1262 BackgroundReaper* reaper = new BackgroundReaper(process, 0); | 1262 BackgroundReaper* reaper = new BackgroundReaper(process, 0); |
1263 PlatformThread::CreateNonJoinable(0, reaper); | 1263 PlatformThread::CreateNonJoinable(0, reaper); |
1264 } | 1264 } |
1265 | 1265 |
1266 #endif // !defined(OS_MACOSX) | 1266 #endif // !defined(OS_MACOSX) |
1267 | 1267 |
1268 } // namespace base | 1268 } // namespace base |
OLD | NEW |