From c78566309f95a11cd5253e1cac681038d9885f21 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Tue, 13 Jan 2009 17:38:49 +0000 Subject: Port crash_cache tool to Linux. Review URL: http://codereview.chromium.org/17353 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7939 0039d316-1c4b-4281-b951-d872f2087c98 --- base/process_util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base/process_util.h') diff --git a/base/process_util.h b/base/process_util.h index c88d341..7eabdbe 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -147,6 +147,12 @@ bool KillProcess(int process_id, int exit_code, bool wait); // process hasn't terminated yet. bool DidProcessCrash(ProcessHandle handle); +// Waits for process to exit. In POSIX systems, if the process hasn't been +// signaled then puts the exit code in |exit_code|; otherwise it's considered +// a failure. On Windows |exit_code| is always filled. Returns true on success, +// and closes |handle| in any case. +bool WaitForExitCode(ProcessHandle handle, int* exit_code); + // Wait for all the processes based on the named executable to exit. If filter // is non-null, then only processes selected by the filter are waited on. // Returns after all processes have exited or wait_milliseconds have expired. -- cgit v1.1