am af2cd21d: Merge "When new error happend,then errno should be updated accordingly. Otherwise, need to keep previous errno."

* commit 'af2cd21d00f16f4915a40004bdbdc2603e958f5a':
  When new error happend,then errno should be updated accordingly. Otherwise, need to keep previous errno.
This commit is contained in:
Elliott Hughes 2014-11-10 23:54:18 +00:00 committed by Android Git Automerger
commit 496fc30d99

View file

@ -220,7 +220,8 @@ int SocketClient::sendDataLockedv(struct iovec *iov, int iovcnt) {
sigaction(SIGPIPE, &old_action, &new_action);
errno = e;
if ( e != 0 )
errno = e;
return ret;
}