summaryrefslogtreecommitdiffstats
path: root/base/process_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r--base/process_util_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index 9829a41..0ced788 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -178,7 +178,7 @@ bool KillProcess(ProcessHandle process, int exit_code, bool wait) {
// The process may not end immediately due to pending I/O
if (WAIT_OBJECT_0 != WaitForSingleObject(process, 60 * 1000))
DLOG(ERROR) << "Error waiting for process exit: " << GetLastError();
- } else {
+ } else if (!result) {
DLOG(ERROR) << "Unable to terminate process: " << GetLastError();
}
return result;