| Index: base/process_util.h
|
| ===================================================================
|
| --- base/process_util.h (revision 80485)
|
| +++ base/process_util.h (working copy)
|
| @@ -373,11 +373,10 @@
|
| BASE_API bool WaitForExitCode(ProcessHandle handle, int* exit_code);
|
|
|
| // Waits for process to exit. If it did exit within |timeout_milliseconds|,
|
| -// then puts the exit code in |exit_code|, and returns true.
|
| +// then puts the exit code in |exit_code|, closes |handle|, and returns true.
|
| // In POSIX systems, if the process has been signaled then |exit_code| is set
|
| // to -1. Returns false on failure (the caller is then responsible for closing
|
| // |handle|).
|
| -// The caller is always responsible for closing the |handle|.
|
| BASE_API bool WaitForExitCodeWithTimeout(ProcessHandle handle, int* exit_code,
|
| int64 timeout_milliseconds);
|
|
|
| @@ -396,6 +395,10 @@
|
| BASE_API bool WaitForSingleProcess(ProcessHandle handle,
|
| int64 wait_milliseconds);
|
|
|
| +// Returns true when |wait_milliseconds| have elapsed and the process
|
| +// is still running.
|
| +BASE_API bool CrashAwareSleep(ProcessHandle handle, int64 wait_milliseconds);
|
| +
|
| // Waits a certain amount of time (can be 0) for all the processes with a given
|
| // executable name to exit, then kills off any of them that are still around.
|
| // If filter is non-null, then only processes selected by the filter are waited
|
|
|