Re: [PATCH] notify_parent and ptrace cleanup

From: Linus Torvalds
Date: Wed Aug 25 2004 - 15:01:17 EST




On Thu, 26 Aug 2004, OGAWA Hirofumi wrote:
>
> Sorry for about it. Yes, racy is implementation issue. And AFAIK, it
> seems to be fixed by we don't allow SIGCONT. (If it doesn't break userland)

We should split TASK_STOPPED into two different cases: TASK_STOPPED and
TASK_PTRACED.

A true TASK_STOPPED continues on SIGCONT. A TASK_PTRACED only continues
when the ptracer says so.

That should be trivially invisible to the user (the only part a user would
see would be if we make "ps" show a different letter for the PTRACED
state..)

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/