diff options
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) | |||
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. */ |