fix the panic on reboot.
authormickey <mickey@openbsd.org>
Wed, 8 May 1996 01:35:13 +0000 (01:35 +0000)
committermickey <mickey@openbsd.org>
Wed, 8 May 1996 01:35:13 +0000 (01:35 +0000)
sys/arch/atari/atari/machdep.c

index 375429a..3b0d07e 100644 (file)
@@ -763,6 +763,10 @@ void
 bootsync(void)
 {
        if (waittime < 0) {
+               extern struct proc proc0;
+               /* defeat against panic in boot */
+               if (curproc == NULL)
+                       curproc = &proc0;
                waittime = 0;
 
                vfs_shutdown();