Skip to contentSkip to conversation

reparent_thread: use remove_parent/add_parent

PATCH New Oleg Nesterov 1 participant 1 message Feb 4, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reparent_thread: use remove_parent/add_parent

(depends on remove-add_parents-parent-argument.patch)

Trivial, use remove_parent/add_parent instead of open coding.

No changes in kernel/exit.o

kernel/exit.c renamed from kernel/exit.c~ +2 -2
@@ -548,9 +548,9 @@ static void reparent_thread(task_t *p, t
 		 * anyway, so let go of it.
 		 */
 		p->ptrace = 0;
-		list_del_init(&p->sibling);
+		remove_parent(p);
 		p->parent = p->real_parent;
-		list_add_tail(&p->sibling, &p->parent->children);
+		add_parent(p);
 
 		/* If we'd notified the old parent about this child's death,
 		 * also notify the new parent.