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:
parent
50d217a9e8
commit
9f4d236531
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue