diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-04-30 09:53:12 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 17:29:38 +0200 |
commit | 376e1d2531860358c8a79fecf5f4f42994d03c4d (patch) | |
tree | 7d90aa39ee7250e1ba0593fa927118b4a9c911e9 /kernel/exit.c | |
parent | ptrace: introduce task_detached() helper (diff) | |
download | linux-376e1d2531860358c8a79fecf5f4f42994d03c4d.tar.xz linux-376e1d2531860358c8a79fecf5f4f42994d03c4d.zip |
reparent_thread: use same_thread_group()
Trivial, use same_thread_group() in reparent_thread().
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 4035d391a0d3..413c81ec858e 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -722,7 +722,7 @@ reparent_thread(struct task_struct *p, struct task_struct *father, int traced) /* If this is a threaded reparent there is no need to * notify anyone anything has happened. */ - if (p->real_parent->group_leader == father->group_leader) + if (same_thread_group(p->real_parent, father)) return; /* We don't want people slaying init. */ |