mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 02:58:01 +08:00
sched/task: do not migrate the task state to INVALID
which still on used in task/nxmq_recover() Change-Id: I31273aadd9e09c283cc3d0420dfc854ca8ae1899 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -158,7 +158,6 @@ int nxtask_terminate(pid_t pid, bool nonblocking)
|
||||
/* Remove the task from the task list */
|
||||
|
||||
dq_rem((FAR dq_entry_t *)dtcb, tasklist);
|
||||
dtcb->task_state = TSTATE_TASK_INVALID;
|
||||
|
||||
/* At this point, the TCB should no longer be accessible to the system */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user