diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-09 03:03:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-01-09 11:03:58 -0500 |
commit | fcfd50afb6e94c8cf121ca4e7e3e7166bae7c6aa (patch) | |
tree | 8e772c80e6dfd8fca5c02bc25859eccb7ea79545 | |
parent | cdf71a10c7b6432d9b48e292cca2c62a0b9fa6cf (diff) |
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>
-rw-r--r-- | kernel/sched.c | 2 |
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) | |||
4918 | } | 4918 | } |
4919 | #endif | 4919 | #endif |
4920 | printk(KERN_CONT "%5lu %5d %6d\n", free, | 4920 | printk(KERN_CONT "%5lu %5d %6d\n", free, |
4921 | task_pid_nr(p), task_pid_nr(p->parent)); | 4921 | task_pid_nr(p), task_pid_nr(p->real_parent)); |
4922 | 4922 | ||
4923 | if (state != TASK_RUNNING) | 4923 | if (state != TASK_RUNNING) |
4924 | show_stack(p, NULL); | 4924 | show_stack(p, NULL); |