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:
parent
ff3fa805a4
commit
d0bde1114d
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user