secril-client: return exact error code from blockingWrite()

Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb
This commit is contained in:
Basil Gello 2017-07-13 19:36:39 +03:00 committed by Christopher N. Hesse
parent 1146f1a616
commit 338942b188
1 changed files with 1 additions and 2 deletions

View File

@ -1572,9 +1572,8 @@ static int blockingWrite(int fd, const void *buffer, size_t len) {
}
else {
RLOGE ("RIL Response: unexpected error on write errno:%d", errno);
printf("RIL Response: unexpected error on write errno:%d\n", errno);
close(fd);
return -1;
return -errno;
}
}