summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2001-11-28 14:00:36 +0000
committerdcs <dcs@FreeBSD.org>2001-11-28 14:00:36 +0000
commit35b8c147a06c30d20838fe10f003bfd8bc1af4d6 (patch)
treeec8b7def760e768c1aec514ee706f77672d8b0b0 /sys
parentdf7d26d6b4053a4aa3b8ded42839dd89a34ec4c6 (diff)
downloadFreeBSD-src-35b8c147a06c30d20838fe10f003bfd8bc1af4d6.zip
FreeBSD-src-35b8c147a06c30d20838fe10f003bfd8bc1af4d6.tar.gz
Waits for a keypress before rebooting on panic.
PR: kern/32351 Submitted by: Jonathan Mini <mini@haikugeek.com> MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/common/panic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/common/panic.c b/sys/boot/common/panic.c
index bad1e45..dfebd97 100644
--- a/sys/boot/common/panic.c
+++ b/sys/boot/common/panic.c
@@ -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);
}
OpenPOWER on IntegriCloud