Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcfd50af authored by Roland McGrath's avatar Roland McGrath Committed by Linus Torvalds
Browse files

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: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cdf71a10
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4918,7 +4918,7 @@ static void show_task(struct task_struct *p)
	}
	}
#endif
#endif
	printk(KERN_CONT "%5lu %5d %6d\n", free,
	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)
	if (state != TASK_RUNNING)
		show_stack(p, NULL);
		show_stack(p, NULL);