commit | 338942b1883b439c285c5672a414c2b47d61f5ff | [log] [tgz] |
---|---|---|
author | Basil Gello <vasek.gello@gmail.com> | Thu Jul 13 19:36:39 2017 +0300 |
committer | Christopher N. Hesse <raymanfx@gmail.com> | Thu Jul 13 19:19:56 2017 +0000 |
tree | c57c538cd40f74f9284d334b6ffb3b6844e3daf4 | |
parent | 1146f1a616c9df25e5c99acfe8c1603098ed9ee3 [diff] |
secril-client: return exact error code from blockingWrite() Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb
diff --git a/ril/libsecril-client/secril-client.cpp b/ril/libsecril-client/secril-client.cpp index 3277b1d..d96f19b 100755 --- a/ril/libsecril-client/secril-client.cpp +++ b/ril/libsecril-client/secril-client.cpp
@@ -1572,9 +1572,8 @@ } 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; } }