fix panic at reboot.
authormickey <mickey@openbsd.org>
Wed, 8 May 1996 09:47:40 +0000 (09:47 +0000)
committermickey <mickey@openbsd.org>
Wed, 8 May 1996 09:47:40 +0000 (09:47 +0000)
sys/arch/vax/vax/machdep.c

index 1daedbd..f00e302 100644 (file)
@@ -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();
                /*