lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectthread groups bug?
Date
From

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/

\
 
 \ /
  Last update: 2005-03-22 13:20    [W:0.099 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site