[PATCH v3 1/2] fork: do not rely on SIGNAL_UNKILLABLE for init check

2018-08-03 Thread Jürg Billeter
copy_process() currently checks the SIGNAL_UNKILLABLE flag to determine whether to accept CLONE_PARENT. In preparation for allowing init processes to opt out of SIGNAL_UNKILLABLE, directly check whether the process is an init process with is_child_reaper(). Signed-off-by: Jürg Billeter ---

[PATCH v3 1/2] fork: do not rely on SIGNAL_UNKILLABLE for init check

2018-08-03 Thread Jürg Billeter
copy_process() currently checks the SIGNAL_UNKILLABLE flag to determine whether to accept CLONE_PARENT. In preparation for allowing init processes to opt out of SIGNAL_UNKILLABLE, directly check whether the process is an init process with is_child_reaper(). Signed-off-by: Jürg Billeter ---