diff options
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r-- | base/process_util_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc index 0ed5d86..9829a41 100644 --- a/base/process_util_win.cc +++ b/base/process_util_win.cc @@ -353,6 +353,11 @@ bool WaitForSingleProcess(ProcessHandle handle, int wait_milliseconds) { return retval; } +bool CrashAwareSleep(ProcessHandle handle, int wait_milliseconds) { + bool retval = WaitForSingleObject(handle, wait_milliseconds) == WAIT_TIMEOUT; + return retval; +} + bool CleanupProcesses(const std::wstring& executable_name, int wait_milliseconds, int exit_code, |