mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
57e8391d32
commit
1c4042c29b
2 changed files with 3 additions and 4 deletions
|
@ -810,7 +810,6 @@ static int __ref kernel_init(void *unused)
|
|||
system_state = SYSTEM_RUNNING;
|
||||
numa_default_policy();
|
||||
|
||||
current->signal->flags |= SIGNAL_UNKILLABLE;
|
||||
flush_delayed_fput();
|
||||
|
||||
if (ramdisk_execute_command) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue