Reparent a kernel thread to init during kthread_exit() so that the zombie

can be reaped.
This commit is contained in:
John Baldwin 2000-10-19 19:53:44 +00:00
parent bd788f7aca
commit d8f831678d

View File

@ -105,6 +105,7 @@ kthread_create(void (*func)(void *), void *arg,
void
kthread_exit(int ecode)
{
proc_reparent(curproc, initproc);
exit1(curproc, W_EXITCODE(ecode, 0));
}