From dca27dbfc5fef74c473daffff41e1c74309092d2 Mon Sep 17 00:00:00 2001 From: Dinakar Guniguntala Date: Wed, 20 Oct 2004 20:58:41 -0700 Subject: [PATCH] stat shows wrong ppid One more place in fs/proc/array.c where ppid is wrong, which I missed in my previous mail to lkml. Signed-off-by: Dinakar Guniguntala Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/proc/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/proc/array.c') diff --git a/fs/proc/array.c b/fs/proc/array.c index e70769e7e1ce..6db46cb190c5 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -370,7 +370,7 @@ static int do_task_stat(struct task_struct *task, char * buffer, int whole) stime += task->signal->stime; } } - ppid = task->pid ? task->real_parent->pid : 0; + ppid = task->pid ? task->group_leader->real_parent->tgid : 0; read_unlock(&tasklist_lock); if (!whole || num_threads<2) -- cgit v1.3