mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 03:43:15 +01:00
l4_exit() works with a reasonable sched_die_sync()
Next: Killing other tasks more cleanly, and waiting on children
This commit is contained in:
@@ -68,6 +68,7 @@ int capability_share(unsigned int share_flags)
|
||||
cap_list_move(&curcont->cap_list,
|
||||
¤t->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)
|
||||
¤t->cap_list);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user