diff options
| author | Dinakar Guniguntala <dino@in.ibm.com> | 2004-10-20 20:58:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2004-10-20 20:58:41 -0700 |
| commit | dca27dbfc5fef74c473daffff41e1c74309092d2 (patch) | |
| tree | 83a709286e7736727fa1534303004460ce48d6ca /fs/proc | |
| parent | a1aa20982329c681ac8023a8e7e1eb9c17d9dc85 (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.c | 2 |
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) |
