Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f6a40939 authored by Mikhail Naganov's avatar Mikhail Naganov Committed by android-build-team Robot
Browse files

audioserver: Use '_exit' instead of 'exit' in HalDeathHandler

Using 'exit' from an RPC threadpool thread is not safe, as 'exit'
runs atexit handlers that destroy global objects. This can interfere
with code still running on other threads.

'_exit' does not run atexit handlers, just terminates the process.

Bug: 116665972
Test: kill android.hardware.audio@2.0-service, check logcat
Change-Id: I5391a659e359e0ca5bba580f1c51dea5df3ea562
(cherry picked from commit 5beb4810)
(cherry picked from commit 06c5d535)
parent 7436115f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment