diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2010-07-12 20:10:36 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-11-19 08:59:15 -0500 |
commit | 1c4042c29bd2e85aac4110552ca8ade763762e84 (patch) | |
tree | 90b34aeae51c9afa088eac37be4e8a14a038e6be /init | |
parent | 57e8391d327609cbf12d843259c968b9e5c1838f (diff) |
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>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 9cf77ab138a6..317750a18f74 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -810,7 +810,6 @@ static int __ref kernel_init(void *unused) | |||
810 | system_state = SYSTEM_RUNNING; | 810 | system_state = SYSTEM_RUNNING; |
811 | numa_default_policy(); | 811 | numa_default_policy(); |
812 | 812 | ||
813 | current->signal->flags |= SIGNAL_UNKILLABLE; | ||
814 | flush_delayed_fput(); | 813 | flush_delayed_fput(); |
815 | 814 | ||
816 | if (ramdisk_execute_command) { | 815 | if (ramdisk_execute_command) { |