From 9f4d236531e584a049250600aa9cbe4454948970 Mon Sep 17 00:00:00 2001 From: anjiahao Date: Thu, 2 Dec 2021 11:29:17 +0800 Subject: [PATCH] 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 --- sched/sched/sched_waitpid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sched/sched/sched_waitpid.c b/sched/sched/sched_waitpid.c index d13b718964..92d4d10637 100644 --- a/sched/sched/sched_waitpid.c +++ b/sched/sched/sched_waitpid.c @@ -424,7 +424,6 @@ pid_t nx_waitpid(pid_t pid, int *stat_loc, int options) /* Recover the exiting child */ child = group_find_child(rtcb->group, info.si_pid); - DEBUGASSERT(child != NULL); /* Discard the child entry, if we have one */