| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "base/logging.h" | 26 #include "base/logging.h" |
| 27 #include "base/memory/scoped_ptr.h" | 27 #include "base/memory/scoped_ptr.h" |
| 28 #include "base/process_util.h" | 28 #include "base/process_util.h" |
| 29 #include "base/stringprintf.h" | 29 #include "base/stringprintf.h" |
| 30 #include "base/synchronization/waitable_event.h" | 30 #include "base/synchronization/waitable_event.h" |
| 31 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 31 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 32 #include "base/threading/platform_thread.h" | 32 #include "base/threading/platform_thread.h" |
| 33 #include "base/threading/thread_restrictions.h" | 33 #include "base/threading/thread_restrictions.h" |
| 34 #include "base/time.h" | 34 #include "base/time.h" |
| 35 | 35 |
| 36 #if defined(OS_FREEBSD) |
| 37 #include <sys/event.h> |
| 38 #include <sys/ucontext.h> |
| 39 #endif |
| 40 |
| 36 #if defined(OS_MACOSX) | 41 #if defined(OS_MACOSX) |
| 37 #include <crt_externs.h> | 42 #include <crt_externs.h> |
| 38 #include <sys/event.h> | 43 #include <sys/event.h> |
| 39 #else | 44 #else |
| 40 extern char** environ; | 45 extern char** environ; |
| 41 #endif | 46 #endif |
| 42 | 47 |
| 43 namespace base { | 48 namespace base { |
| 44 | 49 |
| 45 namespace { | 50 namespace { |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 if (IsChildDead(process)) | 1306 if (IsChildDead(process)) |
| 1302 return; | 1307 return; |
| 1303 | 1308 |
| 1304 BackgroundReaper* reaper = new BackgroundReaper(process, 0); | 1309 BackgroundReaper* reaper = new BackgroundReaper(process, 0); |
| 1305 PlatformThread::CreateNonJoinable(0, reaper); | 1310 PlatformThread::CreateNonJoinable(0, reaper); |
| 1306 } | 1311 } |
| 1307 | 1312 |
| 1308 #endif // !defined(OS_MACOSX) | 1313 #endif // !defined(OS_MACOSX) |
| 1309 | 1314 |
| 1310 } // namespace base | 1315 } // namespace base |
| OLD | NEW |