On Mon, 28 Aug 2000, Martin MaD Douda wrote:
>
> And what will be done, when thread-group leader (tgig==pid) will exec() ?
> If I read your core correctly, it will be de_threaded by seting tgid=pid,
> but it was before! So the process will _not_ be removed from thread group.
> and it will remain in thread group _after_ exec.
No.
It actually gets removed from the process group list and thus the common
signal case.
But yes, it will continue to have the same id, though, which is basically
why the traditional notion of process groups have the notion of "orphans".
Which I don't think is necessary in this case: it's easier to just say
"this is what happens, are you sure you want to do that, then?".
Note that _pthreads_ would never know, because under a pthreads emulation
layer the thread group leader would never be seen as a "real thread"
anyway. So even if we'd extend the notion of execve() into pthreads, this
would never show up.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:21 EST