Reparent a kernel thread to init during kthread_exit() so that the zombie
can be reaped.
This commit is contained in:
parent
bd788f7aca
commit
d8f831678d
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user