Under NPTL emulation, do not reparent all members of a thread group,
commit4b34cfe3bdafcc0ec7de2eca580d3d00cbc06412
authorNicolas Joly <njoly@NetBSD.org>
Fri, 11 Apr 2008 16:47:50 +0000 (11 16:47 +0000)
committerNicolas Joly <njoly@NetBSD.org>
Fri, 11 Apr 2008 16:47:50 +0000 (11 16:47 +0000)
tree3707a22a53117b0993dca4dace984ecaca127460
parentaf565e9aefb468e4f1312ebb29d2b4ae57ba3e55
Under NPTL emulation, do not reparent all members of a thread group,
but only the processes that emulate threads (with LINUX_CLONE_THREAD
set).

This fix a problem for child processes that share address space with
the parent. At exit, the child will die silently, leaving the parent
waiting indefinitely for its end ...
sys/compat/linux/common/linux_exec.c