Commit:     fcfd50afb6e94c8cf121ca4e7e3e7166bae7c6aa
Parent:     cdf71a10c7b6432d9b48e292cca2c62a0b9fa6cf
Author:     Roland McGrath <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 9 00:03:23 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Jan 9 08:03:58 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 3df84ea..37cf07a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4918,7 +4918,7 @@ static void show_task(struct task_struct *p)
        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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to