summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_exithook.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/task_exithook.c')
-rw-r--r--nuttx/sched/task_exithook.c2
1 files changed, 1 insertions, 1 deletions
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