mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
procfs: Group: should return tg_task when HAVE_GROUPID opened
Change-Id: Ia3308877ee8de517db48ef6d04c22a9fb437f142 Signed-off-by: ligd <liguiding1@xiaomi.com> (cherry picked from commit c24ef931a1cd60ad1f4f8e5b4da0cc55f4b44920)
This commit is contained in:
@@ -511,7 +511,7 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
|
||||
|
||||
#ifdef HAVE_GROUPID
|
||||
linesize = procfs_snprintf(procfile->line, STATUS_LINELEN, "%-12s%d\n",
|
||||
"Group:", group->tg_pgrpid);
|
||||
"Group:", group->tg_task);
|
||||
#else
|
||||
linesize = procfs_snprintf(procfile->line, STATUS_LINELEN,
|
||||
"%-12s%d\n", "PPID:", group->tg_ppid);
|
||||
|
||||
Reference in New Issue
Block a user