aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-04-30 03:53:12 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 11:29:38 -0400
commit376e1d2531860358c8a79fecf5f4f42994d03c4d (patch)
tree7d90aa39ee7250e1ba0593fa927118b4a9c911e9 /kernel
parentd839fd4d2e95a5fbc4d50aa9d17eed6a5f2094e6 (diff)
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')
-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)
722 /* If this is a threaded reparent there is no need to 722 /* If this is a threaded reparent there is no need to
723 * notify anyone anything has happened. 723 * notify anyone anything has happened.
724 */ 724 */
725 if (p->real_parent->group_leader == father->group_leader) 725 if (same_thread_group(p->real_parent, father))
726 return; 726 return;
727 727
728 /* We don't want people slaying init. */ 728 /* We don't want people slaying init. */