From: mickey Date: Wed, 8 May 1996 08:28:17 +0000 (+0000) Subject: don't mix this stuff with mashed potatoes. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fd0f51b3f1619b0808c7209b288569442afb613c;p=openbsd don't mix this stuff with mashed potatoes. avoid panic at reboot. --- diff --git a/sys/arch/pc532/pc532/machdep.c b/sys/arch/pc532/pc532/machdep.c index 09d9d43eae6..4cf8919207c 100644 --- a/sys/arch/pc532/pc532/machdep.c +++ b/sys/arch/pc532/pc532/machdep.c @@ -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(); /*