Peek __mach_task_self_ value before proc_dostop call to work around kernel paging bug.

This commit is contained in:
Roland McGrath 1995-12-22 05:57:24 +00:00
parent 567676ff81
commit e3fa2641f4
1 changed files with 6 additions and 4 deletions

View File

@ -121,6 +121,8 @@ __fork (void)
__spin_lock (&_hurd_ports[i].lock);
ports_locked = 1;
*(volatile task_t *) &__mach_task_self_; /* XXX work around kernel bug */
/* Stop all other threads while copying the address space,
so nothing changes. */
err = __proc_dostop (_hurd_ports[INIT_PORT_PROC].port, ss->thread);