l4_exit() works with a reasonable sched_die_sync()

Next: Killing other tasks more cleanly, and waiting on children
This commit is contained in:
Bahadir Balban
2009-10-29 22:44:58 +02:00
parent 73a27f2269
commit a6c61e05b9
9 changed files with 121 additions and 16 deletions

View File

@@ -68,6 +68,7 @@ int capability_share(unsigned int share_flags)
cap_list_move(&curcont->cap_list,
&current->cap_list);
break;
#if 0
case CAP_SHARE_CHILD:
/*
* Move own capabilities to paged-children
@@ -97,6 +98,7 @@ int capability_share(unsigned int share_flags)
&current->cap_list);
break;
}
#endif
default:
return -EINVAL;
}

View File

@@ -200,7 +200,7 @@ void thread_destroy_current(void)
/* Indicate we want to become zombie on suspend */
current->flags |= TASK_EXITING;
sched_suspend_sync();
sched_die_sync();
}
/* Runs a thread for the first time */