Waits for a keypress before rebooting on panic.
PR: kern/32351 Submitted by: Jonathan Mini <mini@haikugeek.com> MFC after: 1 week
This commit is contained in:
parent
df7d26d6b4
commit
35b8c147a0
@ -50,5 +50,8 @@ panic(const char *fmt,...)
|
||||
va_end(ap);
|
||||
printf("\n");
|
||||
|
||||
printf("--> Press a key on the console to reboot <--\n");
|
||||
getchar();
|
||||
printf("Rebooting...\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user