summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1996-10-30 21:40:25 +0000
committerjulian <julian@FreeBSD.org>1996-10-30 21:40:25 +0000
commite1b78916a4b8d96475ebaa0033860c706702fe49 (patch)
tree7f91e449007a1047faa2d9f2c7a89b4278636efe /sys/kern/kern_shutdown.c
parentaafdab57f3e07a14467e840e7ba559b810eaef68 (diff)
downloadFreeBSD-src-e1b78916a4b8d96475ebaa0033860c706702fe49.zip
FreeBSD-src-e1b78916a4b8d96475ebaa0033860c706702fe49.tar.gz
if there is no console, cngetc should act like getc and return -1
make callers aware of this in those cases where it can occur.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 7cb7e5a..40d1d74 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
- * $Id: kern_shutdown.c,v 1.7 1996/09/13 09:17:06 bde Exp $
+ * $Id: kern_shutdown.c,v 1.8 1996/09/14 04:31:01 bde Exp $
*/
#include "opt_ddb.h"
@@ -229,7 +229,7 @@ boot(howto)
printf("\n");
printf("The operating system has halted.\n");
printf("Please press any key to reboot.\n\n");
- cngetc();
+ while (cngetc() == -1); /* no console, halt means STOP HERE */
} else {
if (howto & RB_DUMP) {
if (!cold) {
OpenPOWER on IntegriCloud