| Index: base/process/kill_posix.cc
|
| diff --git a/base/process/kill_posix.cc b/base/process/kill_posix.cc
|
| index 5938fa53233ba6cdd3c1740158f6522568dd4e06..99d70d9ab5590418566be37a047a6aa67ee58247 100644
|
| --- a/base/process/kill_posix.cc
|
| +++ b/base/process/kill_posix.cc
|
| @@ -195,8 +195,13 @@ TerminationStatus GetTerminationStatus(ProcessHandle handle, int* exit_code) {
|
| return GetTerminationStatusImpl(handle, false /* can_block */, exit_code);
|
| }
|
|
|
| -TerminationStatus WaitForTerminationStatus(ProcessHandle handle,
|
| - int* exit_code) {
|
| +TerminationStatus GetKnownDeadTerminationStatus(ProcessHandle handle,
|
| + int* exit_code) {
|
| + bool result = kill(handle, SIGKILL) == 0;
|
| +
|
| + if (!result)
|
| + DPLOG(ERROR) << "Unable to terminate process " << handle;
|
| +
|
| return GetTerminationStatusImpl(handle, true /* can_block */, exit_code);
|
| }
|
|
|
|
|