summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/group_find.c2
-rw-r--r--nuttx/sched/group_internal.h2
-rw-r--r--nuttx/sched/task_exithook.c2
3 files changed, 2 insertions, 4 deletions
diff --git a/nuttx/sched/group_find.c b/nuttx/sched/group_find.c
index d7e82d1f9..4c1205bea 100644
--- a/nuttx/sched/group_find.c
+++ b/nuttx/sched/group_find.c
@@ -145,7 +145,7 @@ FAR struct task_group_s *group_findbygid(gid_t gid)
*
*****************************************************************************/
-#if !defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SCHED_HAVE_PARENT)
+#ifdef HAVE_GROUP_MEMBERS
FAR struct task_group_s *group_findbypid(pid_t pid)
{
FAR struct task_group_s *group;
diff --git a/nuttx/sched/group_internal.h b/nuttx/sched/group_internal.h
index 520a9544b..f97f07d95 100644
--- a/nuttx/sched/group_internal.h
+++ b/nuttx/sched/group_internal.h
@@ -86,8 +86,6 @@ void group_leave(FAR struct tcb_s *tcb);
#ifdef HAVE_GROUP_MEMBERS
FAR struct task_group_s *group_findbygid(gid_t gid);
-#endif
-#if !defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SCHED_HAVE_PARENT)
FAR struct task_group_s *group_findbypid(pid_t pid);
#endif
diff --git a/nuttx/sched/task_exithook.c b/nuttx/sched/task_exithook.c
index 444bfee9c..5633786aa 100644
--- a/nuttx/sched/task_exithook.c
+++ b/nuttx/sched/task_exithook.c
@@ -396,7 +396,7 @@ static inline void task_sigchild(FAR struct tcb_s *ptcb,
info.si_code = CLD_EXITED;
info.si_value.sival_ptr = NULL;
#ifndef CONFIG_DISABLE_PTHREAD
- info.si_pid = chgrp->tg_task;
+ info.si_pid = ctcb->group->tg_task;
#else
info.si_pid = ctcb->pid;
#endif