From: mickey Date: Wed, 8 May 1996 01:35:13 +0000 (+0000) Subject: fix the panic on reboot. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=198087a4aecb07f18a6e4daba667e3f1f72d46c6;p=openbsd fix the panic on reboot. --- diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c index 375429a11a7..3b0d07e9d89 100644 --- a/sys/arch/atari/atari/machdep.c +++ b/sys/arch/atari/atari/machdep.c @@ -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();