OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/kill.h" | 5 #include "base/process/kill.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 #include <sys/wait.h> | 9 #include <sys/wait.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
11 | 11 |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_file.h" | 13 #include "base/files/scoped_file.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
16 #include "base/process/process_iterator.h" | 16 #include "base/process/process_iterator.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 18 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
19 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 | 22 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 if (IsChildDead(process)) | 473 if (IsChildDead(process)) |
474 return; | 474 return; |
475 | 475 |
476 BackgroundReaper* reaper = new BackgroundReaper(process, 0); | 476 BackgroundReaper* reaper = new BackgroundReaper(process, 0); |
477 PlatformThread::CreateNonJoinable(0, reaper); | 477 PlatformThread::CreateNonJoinable(0, reaper); |
478 } | 478 } |
479 | 479 |
480 #endif // !defined(OS_MACOSX) | 480 #endif // !defined(OS_MACOSX) |
481 | 481 |
482 } // namespace base | 482 } // namespace base |
OLD | NEW |