Re: [PATCH] cleanup ptrace stops and remove notify_parent

From: Roland McGrath
Date: Tue Aug 31 2004 - 19:05:07 EST


> For TASK_DEAD and TASK_TRACED, might you be hiding some underlying state?

Not really.

> I want to display stuff like:
>
> T stopped (not traced)
> TX stopped, and being traced
> RX running or runnable, and being traced
> ZE zombie, and trying to exit
> RXE running, trying to exit, and traced

These distinctions don't exist in any data structures, except for the
PF_EXITING flag.

> It's troubling the way TASK_DEAD and TASK_TRACED show up as
> actual states and hide any other stuff. I'd much prefer them
> to be flags of some sort.

That's a different implementation than what we've got now. Feel free to
try to make it work. Linus has talked before about treating the state as a
bitmask, but the code is not actually written that way now.
-
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/