From: mickey Date: Wed, 8 May 1996 09:47:40 +0000 (+0000) Subject: fix panic at reboot. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f751a80a7de76e3f0a8e7b700de0d919431a71bf;p=openbsd fix panic at reboot. --- 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(); /*