]> Git Repo - linux.git/commitdiff
reparent_thread: use same_thread_group()
authorOleg Nesterov <[email protected]>
Wed, 30 Apr 2008 07:53:12 +0000 (00:53 -0700)
committerLinus Torvalds <[email protected]>
Wed, 30 Apr 2008 15:29:38 +0000 (08:29 -0700)
Trivial, use same_thread_group() in reparent_thread().

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Roland McGrath <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/exit.c

index 4035d391a0d3f8ec12e3b545515ab16585a4456e..413c81ec858e6ea5ef989d9a55ce5d706d15b522 100644 (file)
@@ -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.  */
This page took 0.049722 seconds and 4 git commands to generate.