Merge "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:45:50 +00:00 committed by Gerrit Code Review
commit af2cd21d00

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;
}