diff options
author | Elliott Hughes <enh@google.com> | 2015-04-30 06:33:57 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-30 06:33:57 +0200 |
commit | f6c7af289c2990bd16d422ae689317a938f77fdc (patch) | |
tree | e2c357667b0e76e6fa5a43c7a7951c872c373e9c /adb_install.cpp | |
parent | am f7466f9f: Stop using adb_strtok, and check argument validity. (diff) | |
parent | am 34c7731a: Merge "Check all lseek calls succeed." (diff) | |
download | android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.tar android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.tar.gz android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.tar.bz2 android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.tar.lz android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.tar.xz android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.tar.zst android_bootable_recovery-f6c7af289c2990bd16d422ae689317a938f77fdc.zip |
Diffstat (limited to 'adb_install.cpp')
-rw-r--r-- | adb_install.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adb_install.cpp b/adb_install.cpp index ebd4cac00..e3b94ea59 100644 --- a/adb_install.cpp +++ b/adb_install.cpp @@ -42,7 +42,7 @@ set_usb_driver(bool enabled) { ui->Print("failed to open driver control: %s\n", strerror(errno)); return; } - if (write(fd, enabled ? "1" : "0", 1) < 0) { + if (TEMP_FAILURE_RETRY(write(fd, enabled ? "1" : "0", 1)) == -1) { ui->Print("failed to set driver control: %s\n", strerror(errno)); } if (close(fd) < 0) { |