don't mix this stuff with mashed potatoes.
authormickey <mickey@openbsd.org>
Wed, 8 May 1996 08:28:17 +0000 (08:28 +0000)
committermickey <mickey@openbsd.org>
Wed, 8 May 1996 08:28:17 +0000 (08:28 +0000)
avoid panic at reboot.

sys/arch/pc532/pc532/machdep.c

index 09d9d43..4cf8919 100644 (file)
@@ -652,6 +652,11 @@ boot(howto)
        }
        boothowto = howto;
        if ((howto&RB_NOSYNC) == 0 && waittime < 0) {
+               extern struct proc proc0;
+               /* defeat against panic on sync   XXX */
+               if (curproc == NULL)
+                       curproc = proc0;
+
                waittime = 0;
                vfs_shutdown();
                /*