Merge "When new error happend,then errno should be updated accordingly. Otherwise, need to keep previous errno."
This commit is contained in:
commit
af2cd21d00
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue