Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Feb 2002 10:19:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Feb 2002 10:16:27 -0500 Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237]:42488 "HELO executor.cambridge.redhat.com") by vger.kernel.org with SMTP id ; Thu, 28 Feb 2002 10:09:48 -0500 To: torvalds@transmeta.com Cc: linux-kernel@vger.kernel.org Subject: thread groups bug? User-Agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Date: Thu, 28 Feb 2002 15:09:43 +0000 Message-ID: <2720.1014908983@warthog.cambridge.redhat.com> From: David Howells Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, 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. Would you be willing to have an execve() on the master thread kill all the other threads? (And thus be slightly closer to POSIX compliance). Similarly, if the master thread exits, should all the other threads be killed too? If a subsidary thread does an execve(), then what should happen? I can see two ways of handling it: (1) Make it seem that the master thread did an execve(), and kill all the other threads (which is closer to POSIX); and (2) allow the child thread to depart the thread group and set up by itself (as happens now). Of course, comparing Linux thread groups to POSIX threads doesn't hold up very well:-) David - 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/