Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/boot/boot Avoid hanging if boot fails on some m...
details: https://anonhg.NetBSD.org/src/rev/18de9b9b9625
branches: trunk
changeset: 486605:18de9b9b9625
user: ragge <ragge%NetBSD.org@localhost>
date: Fri May 26 20:15:21 2000 +0000
description:
Avoid hanging if boot fails on some machines.
diffstat:
sys/arch/vax/boot/boot/boot.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 07483b8004d5 -r 18de9b9b9625 sys/arch/vax/boot/boot/boot.c
--- a/sys/arch/vax/boot/boot/boot.c Fri May 26 19:11:24 2000 +0000
+++ b/sys/arch/vax/boot/boot/boot.c Fri May 26 20:15:21 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.8 2000/05/25 19:36:20 matt Exp $ */
+/* $NetBSD: boot.c,v 1.9 2000/05/26 20:15:21 ragge Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reserved.
@@ -136,7 +136,8 @@
/* First try to autoboot */
if (askname == 0) {
int fileindex;
- for (fileindex = 0; filelist[fileindex].name[0] != '\0'; fileindex++) {
+ for (fileindex = 0; filelist[fileindex].name[0] != '\0';
+ fileindex++) {
errno = 0;
if (!filelist[fileindex].quiet)
printf("> boot %s\n", filelist[fileindex].name);
@@ -144,8 +145,10 @@
if (!filelist[fileindex].quiet)
printf("%s: boot failed: %s\n",
filelist[fileindex].name, strerror(errno));
+#if 0 /* Will hang VAX 4000 machines */
if (testkey())
break;
+#endif
}
}
Home |
Main Index |
Thread Index |
Old Index