projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c6464
)
[PATCH] reparent_thread: use remove_parent/add_parent
author
Oleg Nesterov
<
[email protected]
>
Wed, 29 Mar 2006 00:11:09 +0000
(16:11 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 29 Mar 2006 02:36:41 +0000
(18:36 -0800)
Use remove_parent/add_parent instead of open coding.
No changes in kernel/exit.o
Signed-off-by: Oleg Nesterov <
[email protected]
>
Cc: "Eric W. Biederman" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/exit.c
patch
|
blob
|
history
diff --git
a/kernel/exit.c
b/kernel/exit.c
index a94e1c31131bf71308d340030f6de766c0e09cf2..98eec590ecbd7cc45253e8b143d1679412484c5e 100644
(file)
--- a/
kernel/exit.c
+++ b/
kernel/exit.c
@@
-555,9
+555,9
@@
static void reparent_thread(task_t *p, task_t *father, int traced)
* 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.