Loading adb/services.c +4 −0 Original line number Diff line number Diff line Loading @@ -144,7 +144,11 @@ void reboot_service(int fd, void *arg) if (ret < 0) { snprintf(buf, sizeof(buf), "reboot failed: %d\n", ret); writex(fd, buf, strlen(buf)); goto cleanup; } // Don't return early. Give the reboot command time to take effect // to avoid messing up scripts which do "adb reboot && adb wait-for-device" while(1) { pause(); } cleanup: free(arg); adb_close(fd); Loading reboot/reboot.c +5 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,11 @@ int main(int argc, char *argv[]) perror("reboot"); exit(EXIT_FAILURE); } // Don't return early. Give the reboot command time to take effect // to avoid messing up scripts which do "adb shell reboot && adb wait-for-device" while(1) { pause(); } fprintf(stderr, "Done\n"); return 0; } Loading
adb/services.c +4 −0 Original line number Diff line number Diff line Loading @@ -144,7 +144,11 @@ void reboot_service(int fd, void *arg) if (ret < 0) { snprintf(buf, sizeof(buf), "reboot failed: %d\n", ret); writex(fd, buf, strlen(buf)); goto cleanup; } // Don't return early. Give the reboot command time to take effect // to avoid messing up scripts which do "adb reboot && adb wait-for-device" while(1) { pause(); } cleanup: free(arg); adb_close(fd); Loading
reboot/reboot.c +5 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,11 @@ int main(int argc, char *argv[]) perror("reboot"); exit(EXIT_FAILURE); } // Don't return early. Give the reboot command time to take effect // to avoid messing up scripts which do "adb shell reboot && adb wait-for-device" while(1) { pause(); } fprintf(stderr, "Done\n"); return 0; }