diff options
author | Elliott Hughes <enh@google.com> | 2015-04-30 06:19:33 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-30 06:19:33 +0200 |
commit | 34d3a3d074e977cace29797c428795e1de5b3223 (patch) | |
tree | e2c357667b0e76e6fa5a43c7a7951c872c373e9c /ui.cpp | |
parent | am 8c389e9c: Merge "Stop using adb_strtok, and check argument validity." (diff) | |
parent | Merge "Check all lseek calls succeed." (diff) | |
download | android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.tar android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.tar.gz android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.tar.bz2 android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.tar.lz android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.tar.xz android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.tar.zst android_bootable_recovery-34d3a3d074e977cace29797c428795e1de5b3223.zip |
Diffstat (limited to '')
-rw-r--r-- | ui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -251,7 +251,7 @@ bool RecoveryUI::IsUsbConnected() { char buf; // USB is connected if android_usb state is CONNECTED or CONFIGURED. - int connected = (read(fd, &buf, 1) == 1) && (buf == 'C'); + int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); if (close(fd) < 0) { printf("failed to close /sys/class/android_usb/android0/state: %s\n", strerror(errno)); |