summaryrefslogtreecommitdiff
path: root/libutils/ProcessCallStack.cpp
diff options
context:
space:
mode:
authorMark Wachsler <wachsler@google.com>2013-10-02 09:35:38 -0400
committerJP Abgrall <jpa@google.com>2013-10-17 20:06:32 +0000
commit157b00171a06f9ac2fd25ee3a86e801e896713d6 (patch)
tree59fc38fe7e3f1c8560345da3e7bb902b4e357f6e /libutils/ProcessCallStack.cpp
parentac568b8f783ee60a7a2cb0ab5b6db786bdb39b35 (diff)
Wait for device to disappear after reboot-bootloader.
(Linux only for now) With fastboot reading serial numbers from sysfs, it had become possible for a fastboot command issued immediately after rebooting the bootloader to fail, because sysfs still thought the device was online. To prevent this, after reboot-bootloader we wait for the device to disconnect. Also made usb_read and usb_write fail immediately if the descriptor has been closed; this prevents an incorrect error message ("Bad file descriptor") when errors from fb_getvar are ignored (e.g., by fb_format_supported). Also removed unused fd param from filter_usb_device, and simplified logic in usb_write by using do/while instead of a special case for len == 0. Change-Id: I799b857eab411fd8ad25f5777fc61c685152ea86
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions