[Mac] Move the reset of signal handlers to be very soon after the fork, before we do any mach IPC.
[Mac] Move the reset of signal handlers to be very soon after the fork, before we do any mach IPC.

The MachPortSender constructor can sometimes hang forever (gets stuck in bootstrap_look_up()), so it is important to reset the child's signal handlers as early as possible.

Nico would like me to mention that this was his idea.

This is take two.  I couldn't reproduce the unit_tests failures either locally or on the release try bots.

BUG=35374
TEST=If in the forever backwards spinner state, closing the tab should not quit the browser.
TEST=In general, renderers and extensions and plugins should still work.
Review URL: http://codereview.chromium.org/3302009

TBR=rohitrao@chromium.org
Review URL: http://codereview.chromium.org/3322013

TBR=rohitrao@chromium.org
Review URL: http://codereview.chromium.org/3360009

git-svn-id: http://src.chromium.org/svn/trunk/src@58572 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 832d4b4f774d7109358e59178383bb4366ec9764
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser