Fix getting exit status for browser child process.
This makes BrowserChildProcessHost::GetTerminationStatus() similar to
RenderProcessHostImpl::GetChildTerminationStatus().
Linux requires waitpid() to block to get an exit status reliably. Otherwise
the kernel is at liberty to not reap the process, even if it's already currently
exiting or dead.
If we know that a process is dead, we should make use of the known_dead
argument to ChildProcessLauncher::GetChildTerminationStatus(), as does
RenderProcessHostImpl::GetChildTerminationStatus().
A discussion of this tricky issue is available in crbug.com/157458 and the
related CL.
This will, among other things, fix NaCl's crash throttling security measure.
BUG=274827,nativeclient:359
[email protected], [email protected]
Review URL: https://codereview.chromium.org/23019012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219814 0039d316-1c4b-4281-b951-d872f2087c98
7 files changed