| commit | 4351bb05ad9fd5580aba7cd6a3dc2bc8c101c3a3 | [log] [tgz] |
|---|---|---|
| author | Bernie Innocenti <codewiz@google.com> | Mon May 28 14:56:57 2018 +0900 |
| committer | Bernie Innocenti <codewiz@google.com> | Mon May 28 15:00:50 2018 +0900 |
| tree | 6e73f7d146873ec44ead1d897f3b35e49187a59e | |
| parent | e82401e592c6c45eca854525c91530ef8422db40 [diff] |
libcutils: Simplify android_get_control_socket()
1. TEMP_FAILURE_RETRY() isn't necessary with getsockname() because
it's a synchronous syscall.
2. There's no need to allocate and free a temporary buffer for the
full pathname of the socket.
Test: Manually, as follows:
- added temporary ALOG output
- flashed and booted a device
- checked expected output from all system daemons
- removed log statements
Change-Id: I4550a2d67fdffe6aff3c1050f8eeeaca0f985fb3