diff options
| author | 2024-11-13 15:13:29 -0800 | |
|---|---|---|
| committer | 2024-11-25 17:24:29 +0000 | |
| commit | eb63bbfd16ed9732be13d2ea6699edc6d7e4b545 (patch) | |
| tree | 7e5e92ea910edbb7c09a21b8e70ddd15666b32b2 /libs/gui/DisplayLuts.cpp | |
| parent | cdde6f555488b6a1e6d3bb2a782394dece4bfc03 (diff) | |
Do not crash when server channel has closed
If the publisher has been destroyed (or, equivalently, if the server
channel was closed), the consumer should not crash. Instead, we should
allow consumer to exit gracefully.
In this CL, we specifically check for DEAD_OBJECT and drain the queue,
printing all of the events that will never be delivered to the publisher
for useful debugging purposes.
Bug: 305165753
Test: TEST=libinput_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST
Flag: EXEMPT bugfix
Change-Id: I00973ebb87e0f59bfd3c0f58edf7355b28988c15
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions