]> git.baikalelectronics.ru Git - kernel.git/commit
pidns: Consolidate initialzation of special init task state
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 13 Jul 2010 00:10:36 +0000 (17:10 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 19 Nov 2012 13:59:15 +0000 (05:59 -0800)
commitc18355404ce21fe9fca00a672decacd4abceaaac
tree90b34aeae51c9afa088eac37be4e8a14a038e6be
parentdba4e8535d3e11c281159604b769126fe1fdd309
pidns: Consolidate initialzation of special init task state

Instead of setting child_reaper and SIGNAL_UNKILLABLE one way
for the system init process, and another way for pid namespace
init processes test pid->nr == 1 and use the same code for both.

For the global init this results in SIGNAL_UNKILLABLE being set
much earlier in the initialization process.

This is a small cleanup and it paves the way for allowing unshare and
enter of the pid namespace as that path like our global init also will
not set CLONE_NEWPID.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
init/main.c
kernel/fork.c