When forking, restore the default exception handler port.

The browser process launches children with fork && exec.  On the Mac, this
results in a child that has its exception ports set the same as the parent.
When Breakpad is enabled, this means that a child such as a renderer process
begins its life with its exception port pointing to a Breakpad instance
running inside the browser.  This is not intended.  Even if the child installs
its own Breakpad handler (which a renderer would), the previous handler would
be pointing to the instance inside the browser, and if the child's Breakpad
is misconfigured to pass exceptions to the previous handler it will wind up
being passed back to the parent.  The misconfiguration was corrected in r25311.
This change restores the default exception handler port, which should be
Apple Crash Reporter/ReportCrash, in the child process immediately after it
it has been forked.

BUG=20371
TEST=None, because r25311 fixed the visible aspect of this bug
Review URL: http://codereview.chromium.org/200007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25371 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: e9a8c19f1f6af2cbfdde08a2884175e521bcef55
2 files changed
tree: f6d5260d241508f5c09f2e3c3e9cb39236f749d4
  1. base/
  2. build/
  3. ipc/
  4. testing/