sched_waitpid:delete debugassert

If a task registers SIGCHLD, uses waitpid(-1)
in the handler, and the task also calls waitpid,
it will fail to delete the child function

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2021-12-02 11:29:17 +08:00
committed by Xiang Xiao
parent 50d217a9e8
commit 9f4d236531
-1
View File
@@ -424,7 +424,6 @@ pid_t nx_waitpid(pid_t pid, int *stat_loc, int options)
/* Recover the exiting child */ /* Recover the exiting child */
child = group_find_child(rtcb->group, info.si_pid); child = group_find_child(rtcb->group, info.si_pid);
DEBUGASSERT(child != NULL);
/* Discard the child entry, if we have one */ /* Discard the child entry, if we have one */