Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 16 Sep 2002 22:58:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 16 Sep 2002 22:58:33 -0400 Received: from mx2.elte.hu ([157.181.151.9]:19933 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Mon, 16 Sep 2002 22:58:33 -0400 Date: Tue, 17 Sep 2002 05:10:16 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Jamie Lokier Cc: linux-kernel@vger.kernel.org Subject: Re: Question about CLONE_CLEARTID and thread group leader In-Reply-To: <20020917034625.A22892@kushida.apsleyroad.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 965 Lines: 23 On Tue, 17 Sep 2002, Jamie Lokier wrote: > One question has been bothering me for a while: what about the thread > group leader's stack? These days, isn't it the case that the group > leader is supposed to be equivalent to the other threads? If so, how > does it exit and release its own stack -- or do we understand that the > group leader, as a one-off exception, has to block signals before > exiting? good question. We might need a new mechanism (new syscall) for a thread to set its own ->user_tid after it has started up. I'll code it up. The fastest thread-startup method is still to also have this mechanism provided by clone() as well - but oviously at exec() time we cannot know about such issues. Ingo - 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/