From 241cf06656b923ff945f170352b27fdc474a77a7 Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 8 May 1996 08:42:51 +0000 Subject: [PATCH] fix panic at reboot. --- sys/arch/pmax/pmax/machdep.c | 4 ++++ 1 file changed, 4 insertions(+) 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.... */ -- 2.20.1