Port-vax archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netboot loader not closing devices (was: Re: Kernel panic with 7.0_BETA)
Oh, if you experience issues and can test: I think the patch below should
be enough - can you test it?
Martin
Index: boot.c
===================================================================
RCS file: /cvsroot/src/sys/arch/vax/boot/boot/boot.c,v
retrieving revision 1.32
diff -u -p -r1.32 boot.c
--- boot.c 9 Nov 2013 18:31:53 -0000 1.32
+++ boot.c 5 Jun 2015 11:13:55 -0000
@@ -140,7 +140,8 @@ Xmain(void)
marks[MARK_START] = 0;
err = loadfile(filelist[fileindex].name, marks,
LOAD_KERNEL|COUNT_KERNEL);
- if (err == 0) {
+ if (err >= 0) {
+ close(err);
machdep_start((char *)marks[MARK_ENTRY],
marks[MARK_NSYM],
(void *)marks[MARK_START],
@@ -231,7 +232,8 @@ fail: printf("usage: boot [filename] [
load:
marks[MARK_START] = 0;
err = loadfile(fn, marks, LOAD_KERNEL|COUNT_KERNEL);
- if (err == 0) {
+ if (err >= 0) {
+ close(err);
machdep_start((char *)marks[MARK_ENTRY],
marks[MARK_NSYM],
(void *)marks[MARK_START],
Home |
Main Index |
Thread Index |
Old Index