aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-09-02 13:22:16 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-02 17:51:27 -0400
commit3b6362b833b9f7a9d4222cf1bb35f99c411abb31 (patch)
treeb72c39577b6a5d50cda735c43213158118c8f7e4 /kernel
parentd738752fc46c4cc339bc66346cf6134446ce08db (diff)
[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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index a4c19a52ce46..d891883420f7 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1053,7 +1053,7 @@ static int eligible_child(pid_t pid, int options, struct task_struct *p)
1053 * Do not consider thread group leaders that are 1053 * Do not consider thread group leaders that are
1054 * in a non-empty thread group: 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 return 2; 1057 return 2;
1058 1058
1059 if (security_task_wait(p)) 1059 if (security_task_wait(p))