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>

authored by Roland McGrath and committed by Linus Torvalds fcfd50af cdf71a10

+1 -1
+1 -1
kernel/sched.c
··· 4918 4918 } 4919 4919 #endif 4920 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 4923 if (state != TASK_RUNNING) 4924 4924 show_stack(p, NULL);