DescriptionFix RecvMsgWithPid on broken socket pair
This prevents RecvMsgWithPid from DCHECK failing under Debug builds
when reading EOF from a broken socket pair. Noticed while testing
crrev.com/269543014.
Unfortunately, Linux allows sending zero length messages that the
recvmsg() API does not distinguish from reading EOF. To be
conservative, if we didn't receive any message or control bytes, then
assume we received an EOF and tolerate not knowing the sender's PID.
BUG=357670
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270967
Patch Set 1 #Patch Set 2 : Use DCHECK_GE #
Messages
Total messages: 9 (0 generated)
|