commit | d87686a2aef4b264aa421fb2af3b10233009e3f1 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue May 03 19:20:35 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue May 03 19:20:35 2022 +0000 |
tree | abbfdb0aaed88d4f52c2da00b99aab0ddd23c11f | |
parent | 394550e145e64da8173f5817ef72482897ac91ee [diff] | |
parent | ba243ced47dbc9787eb366e99eda4570008e4ce6 [diff] |
Snap for 8325254 from 455772c3b5e8bfb24be28f93691cd501e7e04d43 to sc-qpr3-release am: ba243ced47 Original change: https://googleplex-android-review.googlesource.com/c/device/google/cuttlefish/+/17271827 Change-Id: I3dfbf4d3742ff557197a6ac8bc4db617f5e05040 Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/guest/commands/bt_vhci_forwarder/main.cpp b/guest/commands/bt_vhci_forwarder/main.cpp index 2194dd9..d5c4622 100644 --- a/guest/commands/bt_vhci_forwarder/main.cpp +++ b/guest/commands/bt_vhci_forwarder/main.cpp
@@ -142,6 +142,11 @@ PLOG(ERROR) << "vhci to virtio-console failed"; } } + if (fds[1].revents & POLLHUP) { + LOG(ERROR) << "PollHUP"; + usleep(50 * 1000); + continue; + } if (fds[1].revents & (POLLIN | POLLERR)) { // 'virtio-console to vhci' depends on H4Packetizer because vhci expects // full packet, but the data from virtio-console could be partial.