OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/process_watcher.h" | 5 #include "content/common/process_watcher.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <signal.h> | 8 #include <signal.h> |
9 #include <sys/event.h> | 9 #include <sys/event.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <sys/wait.h> | 11 #include <sys/wait.h> |
12 | 12 |
13 #include "base/eintr_wrapper.h" | 13 #include "base/eintr_wrapper.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // wait for long, if at all. | 161 // wait for long, if at all. |
162 BlockingReap(child); | 162 BlockingReap(child); |
163 } | 163 } |
164 } | 164 } |
165 | 165 |
166 } // namespace | 166 } // namespace |
167 | 167 |
168 void ProcessWatcher::EnsureProcessTerminated(base::ProcessHandle process) { | 168 void ProcessWatcher::EnsureProcessTerminated(base::ProcessHandle process) { |
169 WaitForChildToDie(process, kWaitBeforeKillSeconds); | 169 WaitForChildToDie(process, kWaitBeforeKillSeconds); |
170 } | 170 } |
OLD | NEW |