From 198087a4aecb07f18a6e4daba667e3f1f72d46c6 Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 8 May 1996 01:35:13 +0000 Subject: [PATCH] fix the panic on reboot. --- sys/arch/atari/atari/machdep.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.20.1