summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-04-30 00:53:12 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 08:29:38 -0700
commit376e1d2531860358c8a79fecf5f4f42994d03c4d (patch)
tree7d90aa39ee7250e1ba0593fa927118b4a9c911e9 /kernel/exit.c
parentd839fd4d2e95a5fbc4d50aa9d17eed6a5f2094e6 (diff)
downloadlinux-376e1d2531860358c8a79fecf5f4f42994d03c4d.tar.gz
linux-376e1d2531860358c8a79fecf5f4f42994d03c4d.tar.bz2
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.c2
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. */