Add comments; minor spelling fix in comments.

This commit is contained in:
Gregory Nutt 2019-07-20 09:21:28 -06:00
parent 8181a92a1d
commit 3252e35280
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/****************************************************************************
* sched/sched/sched_waitpid.c
*
* Copyright (C) 2011-2013, 2015, 2017-2018 Gregory Nutt. All rights
* Copyright (C) 2011-2013, 2015, 2017-2019 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
@ -429,7 +429,7 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options)
if (pid == (pid_t)-1)
{
/* We are waiting for any child, check if there are still
* chilren.
* children.
*/
DEBUGASSERT(!retains || rtcb->group->tg_children);
@ -542,6 +542,8 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options)
#ifdef CONFIG_SCHED_CHILD_STATUS
if (retains)
{
/* Recover the exiting child */
child = group_exitchild(rtcb->group);
DEBUGASSERT(child != NULL);