OSDN Git Service

emulator/hciemu: Fix not handling failed read correctly
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 25 Sep 2014 10:33:53 +0000 (12:33 +0200)
committerSzymon Janc <szymon.janc@tieto.com>
Mon, 29 Sep 2014 08:02:28 +0000 (10:02 +0200)
commitcc91d165c566e1e296bcb50c4430b9b1c6a1129a
tree4a673cc0868a64dd35a7a60358751525e754842b
parent7a964f0bfa0c11cf8a838e89879f0b4ffb00b531
emulator/hciemu: Fix not handling failed read correctly

If read failed due to signal or blocking watch was removed resulting
in closing /dev/vhci and emulated adapter being removed.

This was affecting android-tester since premature removal of adapter
is considered error on android daemon.
emulator/hciemu.c