make sure to context-switch to idle thread when therad's status is PS_EXITED
refs #1029
This commit is contained in:
@ -3139,7 +3139,8 @@ redo:
|
||||
}
|
||||
}
|
||||
|
||||
if (v->flags & CPU_FLAG_NEED_MIGRATE) {
|
||||
if (v->flags & CPU_FLAG_NEED_MIGRATE ||
|
||||
prev->status == PS_EXITED) {
|
||||
next = &cpu_local_var(idle);
|
||||
} else {
|
||||
/* Pick a new running process or one that has a pending signal */
|
||||
|
||||
Reference in New Issue
Block a user