summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-09 00:03:23 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-01-09 08:03:58 -0800
commitfcfd50afb6e94c8cf121ca4e7e3e7166bae7c6aa (patch)
tree8e772c80e6dfd8fca5c02bc25859eccb7ea79545 /kernel
parentcdf71a10c7b6432d9b48e292cca2c62a0b9fa6cf (diff)
downloadlinux-fcfd50afb6e94c8cf121ca4e7e3e7166bae7c6aa.tar.bz2
show_task: real_parent
The show_task function invoked by sysrq-t et al displays the pid and parent's pid of each task. It seems more useful to show the actual process hierarchy here than who is using ptrace on each process. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 3df84ea6aba9..37cf07aa4164 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4918,7 +4918,7 @@ static void show_task(struct task_struct *p)
}
#endif
printk(KERN_CONT "%5lu %5d %6d\n", free,
- task_pid_nr(p), task_pid_nr(p->parent));
+ task_pid_nr(p), task_pid_nr(p->real_parent));
if (state != TASK_RUNNING)
show_stack(p, NULL);