summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorDinakar Guniguntala <dino@in.ibm.com>2004-10-20 20:58:41 -0700
committerLinus Torvalds <torvalds@evo.osdl.org>2004-10-20 20:58:41 -0700
commitdca27dbfc5fef74c473daffff41e1c74309092d2 (patch)
tree83a709286e7736727fa1534303004460ce48d6ca /fs/proc
parenta1aa20982329c681ac8023a8e7e1eb9c17d9dc85 (diff)
[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 <dino@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/array.c2
1 files changed, 1 insertions, 1 deletions
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)