From: Oleg Nesterov Trivial, use same_thread_group() in reparent_thread(). Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton --- kernel/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/exit.c~reparent_thread-use-same_thread_group kernel/exit.c --- a/kernel/exit.c~reparent_thread-use-same_thread_group +++ a/kernel/exit.c @@ -656,7 +656,7 @@ reparent_thread(struct task_struct *p, s /* 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. */ _