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:
chao.an 2020-08-03 17:00:58 +08:00 committed by Xiang Xiao
parent ff3fa805a4
commit d0bde1114d

View File

@ -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 */