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 <limits> | 17 #include <limits> |
17 #include <set> | 18 #include <set> |
18 | 19 |
19 #include "base/command_line.h" | 20 #include "base/command_line.h" |
20 #include "base/compiler_specific.h" | 21 #include "base/compiler_specific.h" |
21 #include "base/debug/debugger.h" | 22 #include "base/debug/debugger.h" |
22 #include "base/debug/stack_trace.h" | 23 #include "base/debug/stack_trace.h" |
23 #include "base/dir_reader_posix.h" | 24 #include "base/dir_reader_posix.h" |
24 #include "base/eintr_wrapper.h" | 25 #include "base/eintr_wrapper.h" |
25 #include "base/file_util.h" | 26 #include "base/file_util.h" |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 if (IsChildDead(process)) | 1325 if (IsChildDead(process)) |
1325 return; | 1326 return; |
1326 | 1327 |
1327 BackgroundReaper* reaper = new BackgroundReaper(process, 0); | 1328 BackgroundReaper* reaper = new BackgroundReaper(process, 0); |
1328 PlatformThread::CreateNonJoinable(0, reaper); | 1329 PlatformThread::CreateNonJoinable(0, reaper); |
1329 } | 1330 } |
1330 | 1331 |
1331 #endif // !defined(OS_MACOSX) | 1332 #endif // !defined(OS_MACOSX) |
1332 | 1333 |
1333 } // namespace base | 1334 } // namespace base |
OLD | NEW |