This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new d0bde11  sched/task: do not migrate the task state to INVALID
d0bde11 is described below

commit d0bde1114d628cf059782a044bec1cb3b0471475
Author: chao.an <anc...@xiaomi.com>
AuthorDate: Mon Aug 3 17:00:58 2020 +0800

    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 <anc...@xiaomi.com>
---
 sched/task/task_terminate.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sched/task/task_terminate.c b/sched/task/task_terminate.c
index 127ca5b..0f63451 100644
--- a/sched/task/task_terminate.c
+++ b/sched/task/task_terminate.c
@@ -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 */
 

Reply via email to