diff options
author | dcs <dcs@FreeBSD.org> | 2001-11-28 14:00:36 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 2001-11-28 14:00:36 +0000 |
commit | 35b8c147a06c30d20838fe10f003bfd8bc1af4d6 (patch) | |
tree | ec8b7def760e768c1aec514ee706f77672d8b0b0 | |
parent | df7d26d6b4053a4aa3b8ded42839dd89a34ec4c6 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/boot/common/panic.c | 3 |
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); } |