aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2011-03-23 19:43:12 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 22:46:57 -0400
commit45a68628d37222e655219febce9e91b6484789b2 (patch)
tree6acb5c45e8b11022358a1c28691c9b2c75a7df91 /init
parentbfdc0b497faa82a0ba2f9dddcf109231dd519fcc (diff)
pid: remove the child_reaper special case in init/main.c
This patchset is a cleanup and a preparation to unshare the pid namespace. These prerequisites prepare for Eric's patchset to give a file descriptor to a namespace and join an existing namespace. This patch: It turns out that the existing assignment in copy_process of the child_reaper can handle the initial assignment of child_reaper we just need to generalize the test in kernel/fork.c Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Serge E. Hallyn <serge@hallyn.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r--init/main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/init/main.c b/init/main.c
index 3627bb37225..4a9479ef454 100644
--- a/init/main.c
+++ b/init/main.c
@@ -787,15 +787,6 @@ static int __init kernel_init(void * unused)
787 * init can run on any cpu. 787 * init can run on any cpu.
788 */ 788 */
789 set_cpus_allowed_ptr(current, cpu_all_mask); 789 set_cpus_allowed_ptr(current, cpu_all_mask);
790 /*
791 * Tell the world that we're going to be the grim
792 * reaper of innocent orphaned children.
793 *
794 * We don't want people to have to make incorrect
795 * assumptions about where in the task array this
796 * can be found.
797 */
798 init_pid_ns.child_reaper = current;
799 790
800 cad_pid = task_pid(current); 791 cad_pid = task_pid(current);
801 792