Always ignore SIGPIPE for NaCl both in SFI mode and non SFI mode.
commit4a22c16a0bc4e16301812e9679b6eba328ceee13
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 12:22:52 +0000 (16 12:22 +0000)
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 12:22:52 +0000 (16 12:22 +0000)
tree859cb4c76eb1f9f08f0d4a765e063eb997a9d69c
parentc90a5ea7cbefde8907051b65aa443dfa3120d3e3
Always ignore SIGPIPE for NaCl both in SFI mode and non SFI mode.

Currently, if there is an access to the pipe, whose other side is
already closed, SIGPIPE will be raised in some platform such as linux.
It is unexpected behavior, and causes some test failure.
This is what trusted plugin does in content/app/content_main_runner.cc.

TEST=Ran PPAPINaClPNaClNonSfiTest.Audio locally many times and the flakiness
was gone. Also run trybots.
BUG=371662

Review URL: https://codereview.chromium.org/288063004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271000 0039d316-1c4b-4281-b951-d872f2087c98
components/nacl/loader/nacl_helper_linux.cc