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

Skip to content
Commit 6cb233f7 authored by Yun-Hao Chung's avatar Yun-Hao Chung Committed by Yun-hao Chung
Browse files

Floss: Add extra delay in cleanup before exit

In the final step of the current cleanup process, we are waiting for the
thread event to be disassociated, which is called after btif cleanup
finished. However, there are more cleanup functions needed to be done
after btif cleanup in |event_clean_up_stack|. These become undefined
behaviors since the process is going to be terminated by btadapterd.

This adds an extra delay to give the rest of the cleanup processes
some time to finish.

Bug: 304997914
Test: rmmod btusb to trigger sigterm and observe the extra delay
Test: mma -j
Tag: #floss
Flag: EXEMPT, Floss-only changes
Change-Id: Id049a4b5c1192aae2b9a71ee1a7c394c9398f1c2
parent 1ef1ee91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment