summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/vax/vax/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c
index 1daedbd9cff..f00e302cca6 100644
--- a/sys/arch/vax/vax/machdep.c
+++ b/sys/arch/vax/vax/machdep.c
@@ -530,6 +530,10 @@ boot(howto)
{
showto = howto;
if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
+ extern struct proc proc0;
+ /* allow safe curproc referencies */
+ if (curproc == NULL)
+ curproc = &proc0;
waittime = 0;
vfs_shutdown();
/*