]> git.baikalelectronics.ru Git - kernel.git/commit
pid: remove the child_reaper special case in init/main.c
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 23 Mar 2011 23:43:12 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:57 +0000 (19:46 -0700)
commit49f5ee826243d5ce8bd5f3aefbd85ea948752448
tree6acb5c45e8b11022358a1c28691c9b2c75a7df91
parentfc4913b1d6eda05dea100399e7dd8dd76c67619b
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>
include/linux/pid.h
init/main.c
kernel/fork.c