summaryrefslogtreecommitdiffstats
path: root/reboot
diff options
context:
space:
mode:
Diffstat (limited to 'reboot')
-rw-r--r--reboot/reboot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/reboot/reboot.c b/reboot/reboot.c
index 0e5170d42..d9a422764 100644
--- a/reboot/reboot.c
+++ b/reboot/reboot.c
@@ -68,6 +68,11 @@ int main(int argc, char *argv[])
68 perror("reboot"); 68 perror("reboot");
69 exit(EXIT_FAILURE); 69 exit(EXIT_FAILURE);
70 } 70 }
71
72 // Don't return early. Give the reboot command time to take effect
73 // to avoid messing up scripts which do "adb shell reboot && adb wait-for-device"
74 while(1) { pause(); }
75
71 fprintf(stderr, "Done\n"); 76 fprintf(stderr, "Done\n");
72 return 0; 77 return 0;
73} 78}