Skip to content

Commit

Permalink
show_task: real_parent
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Jan 9, 2008
1 parent cdf71a1 commit fcfd50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fcfd50a

Please sign in to comment.