mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-10 13:56:48 +00:00
Fix the condition in is_last_thread
This commit is contained in:
parent
2bda8d17c4
commit
f159b42b61
@ -277,7 +277,7 @@ impl PosixThread {
|
||||
let tasks = process.tasks().lock();
|
||||
tasks
|
||||
.iter()
|
||||
.any(|task| !Thread::borrow_from_task(task).status().is_exited())
|
||||
.all(|task| Thread::borrow_from_task(task).status().is_exited())
|
||||
}
|
||||
|
||||
/// Gets the read-only credentials of the thread.
|
||||
|
Loading…
x
Reference in New Issue
Block a user