Re: [patch] threading fix, tid-2.5.47-A3

From: Linus Torvalds (torvalds@transmeta.com)
Date: Mon Nov 18 2002 - 11:00:57 EST


On Sun, 17 Nov 2002, Ulrich Drepper wrote:
>
> which works for me. But since in schedule_tail() the code reads
>
> + if (current->user_tid)
> + put_user(current->pid, current->user_tid);
>
> this enables writing the TID even if CLONE_CHILD_SETTID isn't set. The
> question is: how to access the clone flag information in the child?

The alternate approach is to just say that using CLEARTID without SETTID
is a bug. I think that's the right approach.

                Linus

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



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:22 EST