]> err.no Git - linux-2.6/commitdiff
[PATCH] eligible_child: remove an obsolete ->tgid check
authorOleg Nesterov <oleg@tv-sign.ru>
Sat, 2 Sep 2006 17:22:16 +0000 (21:22 +0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 2 Sep 2006 21:51:27 +0000 (14:51 -0700)
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>
kernel/exit.c

index a4c19a52ce46dbee40cfa0d67e37f406cf9329ed..d891883420f7bfd64b0cbc29b7003fcd57d526ef 100644 (file)
@@ -1053,7 +1053,7 @@ static int eligible_child(pid_t pid, int options, struct task_struct *p)
         * Do not consider thread group leaders that are
         * in a non-empty thread group:
         */
-       if (current->tgid != p->tgid && delay_group_leader(p))
+       if (delay_group_leader(p))
                return 2;
 
        if (security_task_wait(p))