diff options
Diffstat (limited to 'nuttx/sched/task_reparent.c')
-rw-r--r-- | nuttx/sched/task_reparent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/task_reparent.c b/nuttx/sched/task_reparent.c index f32d011e9..e47fbfee5 100644 --- a/nuttx/sched/task_reparent.c +++ b/nuttx/sched/task_reparent.c @@ -109,7 +109,7 @@ int task_reparent(pid_t ppid, pid_t chpid) /* Get the old parent task's task group (ogrp) */ - ogrp = group_find(ogid); + ogrp = group_findbygid(ogid); if (!ogrp) { ret = -ESRCH; @@ -126,7 +126,7 @@ int task_reparent(pid_t ppid, pid_t chpid) /* Get the grandparent task's task group (pgrp) */ pgid = ogrp->tg_pgid; - pgrp = group_find(pgid); + pgrp = group_findbygid(pgid); } else { |