mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
@@ -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 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user