Re: [PATCH] show_task: real_parent

From: Linus Torvalds
Date: Wed Jan 09 2008 - 11:05:12 EST




On Wed, 9 Jan 2008, Roland McGrath wrote:
>
> 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.

Hmm. It could go both ways. If the problem is some ptrace()/wait4()
interaction issue (which is certainly not unheard of!) the parent that
matters for the kernel may be the right thing to print out.

I wonder if we should just print out both (or perhaps print out the
ptrace parent only if it differs from the normal parent?)

I'll apply this, because I agree that it's sensible in general, I just
wonder how often anybody really even cares about the parent information
when it's not about some wait-related issue..

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/