From: mickey Date: Wed, 8 May 1996 08:42:51 +0000 (+0000) Subject: fix panic at reboot. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=241cf06656b923ff945f170352b27fdc474a77a7;p=openbsd fix panic at reboot. --- diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c index d7ff865d080..a7c652305f7 100644 --- a/sys/arch/pmax/pmax/machdep.c +++ b/sys/arch/pmax/pmax/machdep.c @@ -1067,6 +1067,10 @@ boot(howto) boothowto = howto; if ((howto & RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + /* avoid panic at boot XXX */ + if (curproc == NULL) + curproc = &proc0; /* * Synchronize the disks.... */