From f751a80a7de76e3f0a8e7b700de0d919431a71bf Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 8 May 1996 09:47:40 +0000 Subject: [PATCH] fix panic at reboot. --- sys/arch/vax/vax/machdep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c index 1daedbd9cff..f00e302cca6 100644 --- a/sys/arch/vax/vax/machdep.c +++ b/sys/arch/vax/vax/machdep.c @@ -530,6 +530,10 @@ boot(howto) { showto = howto; if ((howto & RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + /* allow safe curproc referencies */ + if (curproc == NULL) + curproc = &proc0; waittime = 0; vfs_shutdown(); /* -- 2.20.1