Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Feb 2002 12:24:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Feb 2002 12:23:54 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:61456 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Thu, 28 Feb 2002 12:19:21 -0500 Date: Thu, 28 Feb 2002 09:16:47 -0800 (PST) From: Linus Torvalds To: David Howells cc: Subject: Re: thread groups bug? In-Reply-To: <2720.1014908983@warthog.cambridge.redhat.com> 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 On Thu, 28 Feb 2002, David Howells wrote: > > If the master thread of a thread group (PID==TGID) performs an execve() then > it is possible to end up with two or more thread groups with the same TGID. No. When they have the same TGID, they _are_ the same thread group. There is absolutely _zero_ correlation between thread ID and MM. Never has been, never will be. An execve() is a total non-event from a TGID perspective. If you expect POSIX behaviour, you do not do execve's from the master. It's that simple. (Note that if you want POSIX behaviour, you're catching execve() anyway, so the matter is moot). 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/