commit | d99f9caba6600f1b5e0bc8a21681162ae42d6518 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Fri Oct 25 10:22:18 2013 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Fri Oct 25 11:34:35 2013 -0700 |
tree | e0545be2df5581450287159ec330ba64edcf5a26 | |
parent | 758f97e46df203659c46941dc4483f7b369a5640 [diff] |
Skip writing PFD status when comm is closed. If the remote side of PFD has already written a status message, then they've also closed their end of the comm FD, and we're going to EPIPE if we try sending our own status. So, skip writing status if a remote status is present. Only one end of the openFile() comm socket needs to be blocking, otherwise detachFd() would end up blocking forever. Bug: 11385467 Change-Id: I346d40cc1ca4a6683cec4c2d2b7db2b32ac94a55