Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] eligible_child: remove an obsolete ->tgid check

It is not possible to find a sub-thread in ->children/->ptrace_children
lists, ptrace_attach() does not allow to attach to sub-threads.

Even if it was possible to ptrace the task from the same thread group,
we can't allow to release ->group_leader while there are others (ptracer)
threads in the same group.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Oleg Nesterov and committed by
Linus Torvalds
3b6362b8 d738752f

+1 -1
+1 -1
kernel/exit.c
··· 1053 1053 * Do not consider thread group leaders that are 1054 1054 * in a non-empty thread group: 1055 1055 */ 1056 - if (current->tgid != p->tgid && delay_group_leader(p)) 1056 + if (delay_group_leader(p)) 1057 1057 return 2; 1058 1058 1059 1059 if (security_task_wait(p))