commit | 9a0f2d151aa3668b771352a6e102755197b1b5a3 | [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 | 4a44090f089b92dd58631f092d9525e2b4b3ab1b [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