Re: thread groups bug?

Benjamin LaHaise (bcrl@redhat.com)
Thu, 28 Feb 2002 10:59:38 -0500


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/