artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
241cf06
)
avoid panics at reboot.
author
mickey
<mickey@openbsd.org>
Wed, 8 May 1996 08:52:32 +0000
(08:52 +0000)
committer
mickey
<mickey@openbsd.org>
Wed, 8 May 1996 08:52:32 +0000
(08:52 +0000)
sys/arch/sun3/sun3/machdep.c
patch
|
blob
|
history
diff --git
a/sys/arch/sun3/sun3/machdep.c
b/sys/arch/sun3/sun3/machdep.c
index
156c0e1
..
27eb73c
100644
(file)
--- a/
sys/arch/sun3/sun3/machdep.c
+++ b/
sys/arch/sun3/sun3/machdep.c
@@
-754,12
+754,16
@@
sys_sigreturn(p, v, retval)
int waittime = -1; /* XXX - Who else looks at this? -gwr */
static void reboot_sync()
{
+ extern struct proc proc0;
struct buf *bp;
int iter, nbusy;
/* Check waittime here to localize its use to this function. */
if (waittime >= 0)
return;
+ /* fix curproc */
+ if (curproc == NULL)
+ curproc = &proc0;
waittime = 0;
vfs_shutdown();
}