lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 28 Feb 2002 10:59:38 -0500
FromBenjamin LaHaise <>
SubjectRe: thread groups bug?
On Thu, Feb 28, 2002 at 03:36:27PM +0000, David Howells wrote:
> > How about: (3) make execve allocate a new thread group id?
> It seems that the TGID must also be a valid PID so that signal handling will
> work correctly...
> 
> This could be solved by making PIDs independent of processes, but that's
> really not very nice.

Oh, interesting.  Note that we already allocate from the pid space for 
other things, so it's entirely doable.  Another choice would be to simply 
disallow the thread group leader from exec'ing.  Linux threads traditionally 
try to remain as close to process behaviour as possible, and allowing an 
individual thread to exec is very useful, so I'm still in favour of 
allocating a new tgid.

		-ben
-- 
"A man with a bass just walked in,
 and he's putting it down
 on the floor."
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:20    [W:0.265 / U:0.050 seconds]
©2003-2008 Jasper Spaans