|
@@ -35,9 +35,9 @@ void __ptrace_link(task_t *child, task_t *new_parent)
|
|
|
if (child->parent == new_parent)
|
|
|
return;
|
|
|
list_add(&child->ptrace_list, &child->parent->ptrace_children);
|
|
|
- REMOVE_LINKS(child);
|
|
|
+ remove_parent(child);
|
|
|
child->parent = new_parent;
|
|
|
- SET_LINKS(child);
|
|
|
+ add_parent(child);
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -77,9 +77,9 @@ void __ptrace_unlink(task_t *child)
|
|
|
child->ptrace = 0;
|
|
|
if (!list_empty(&child->ptrace_list)) {
|
|
|
list_del_init(&child->ptrace_list);
|
|
|
- REMOVE_LINKS(child);
|
|
|
+ remove_parent(child);
|
|
|
child->parent = child->real_parent;
|
|
|
- SET_LINKS(child);
|
|
|
+ add_parent(child);
|
|
|
}
|
|
|
|
|
|
ptrace_untrace(child);
|