mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Rewrite exit()
and exit_group()
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5efc32b6ea
commit
35c20620bc
@ -260,7 +260,11 @@ fn clone_child_task(
|
||||
thread_builder.build()
|
||||
};
|
||||
|
||||
process.tasks().lock().push(child_task.clone());
|
||||
process
|
||||
.tasks()
|
||||
.lock()
|
||||
.insert(child_task.clone())
|
||||
.map_err(|_| Error::with_message(Errno::EINTR, "the process has exited"))?;
|
||||
|
||||
let child_posix_thread = child_task.as_posix_thread().unwrap();
|
||||
clone_parent_settid(child_tid, clone_args.parent_tid, clone_flags)?;
|
||||
|
Reference in New Issue
Block a user