Skip to contentSkip to conversation

reparent_thread: use same_thread_group()

PATCH In review Oleg Nesterov 2 participants 2 messages Mar 3, 2008 – Mar 4, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reparent_thread: use same_thread_group()

Trivial, use same_thread_group() in reparent_thread().

kernel/exit.c renamed from kernel/exit.c~6_EN_SG +1 -1
@@ -653,7 +653,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.  */