Make of_ZOMBIE use scheduled thread deletion.

This patch modifies of_ZOMBIE() to use the same scheduled deletion
as vthread_reap().
This commit is contained in:
Cary R 2008-03-21 09:36:34 -07:00 committed by Stephen Williams
parent ea74eb771e
commit 259e4294e3
1 changed files with 1 additions and 1 deletions

View File

@ -3730,7 +3730,7 @@ bool of_ZOMBIE(vthread_t thr, vvp_code_t)
{
thr->pc = codespace_null();
if ((thr->parent == 0) && (thr->child == 0))
delete thr;
schedule_del_thr(thr);
return false;
}