summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorGyeongtaek Lee <gt82.lee@samsung.com>2020-08-06 19:49:59 +0900
committerGyeongtaek Lee <gt82.lee@samsung.com>2020-08-14 21:29:17 +0900
commit2f11cb4c4cb029ef2a5836bf7671f3deafd4feec (patch)
tree1c2aac9eb27c8beccb9b040076237673501b31f2 /trusty/coverage/coverage.cpp
parent278f11b57425d3a14369049e866c597980677988 (diff)
libcutils: use 0 for netlink socket port id
AudioHAL and SoundtriggerHAL is separeted HAL but running in thread with same process id. So, if both HAL try to open netlink socket using uevent_open_socket(), secondly opening socket receives already-in-use error. To prevent situation, set 0 to socket port id. By the LINUX man page, "The kernel assigns the process ID to the first netlink socket the process opens and assigns a unique nl_pid to every netlink socket that the process subsequently creates." Bug:163008274 Test: tested by opening netlink socket in AudioHAL and SoundtriggerHAL both. Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com> Change-Id: I5f9859e8dac749bf5d0998e825043c9988c202ba
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions