fix the panic at reboot.
authormickey <mickey@openbsd.org>
Wed, 8 May 1996 01:43:18 +0000 (01:43 +0000)
committermickey <mickey@openbsd.org>
Wed, 8 May 1996 01:43:18 +0000 (01:43 +0000)
sys/arch/hp300/hp300/machdep.c

index 061afa4..216486e 100644 (file)
@@ -1141,6 +1141,10 @@ boot(howto)
 
        boothowto = howto;
        if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
+               extern struct proc proc0;
+               /* make panic at reboot go away */
+               if (curproc == NULL)
+                       curproc = &proc0;
                waittime = 0;
                vfs_shutdown();
                /*