DescriptionTry to tolerate running on contexts with SIGPIPE enabled.
Although Chromium wisely disables this ancient UNIX bug, the net stack is part
of Cronet which may be used in other consumers. Rather than modify the global
signal dispositions (bad manners for a library) or propagate this requirement
to the callers (also bad manners, if sound), make an attempt to suppress the
signal on a per-socket basis.
Unfortunately, iOS/OSX and Linux kindly have different APIs for this, so we
need to touch two places.
BUG=467132
Committed: https://crrev.com/281502752bdcee2f121b99d3a971301b8c271297
Cr-Commit-Position: refs/heads/master@{#398121}
Patch Set 1 #
Total comments: 4
Patch Set 2 : #
Messages
Total messages: 16 (5 generated)
|