From: mickey Date: Wed, 8 May 1996 01:43:18 +0000 (+0000) Subject: fix the panic at reboot. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f22b0dcc295cee9cf6c92f941491bf4ab3f9f65c;p=openbsd fix the panic at reboot. --- diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 061afa4d7b0..216486eeafb 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -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(); /*