[CRIU] [PATCH] restore: Set CLONE_PARENT iif pdeath_sig is present, v3

Pavel Emelyanov xemul at parallels.com
Thu Aug 14 11:24:02 PDT 2014


On 08/14/2014 10:13 PM, Cyrill Gorcunov wrote:
> On Thu, Aug 14, 2014 at 09:59:03PM +0400, Pavel Emelyanov wrote:
>>>
>>> yes, and we do. I move condition one level up for clarity, attached.
>>>
>>
>> 1. A hunk in criu_signals_setup() is also required
>> 2. CLONE_PARENT for swrk_restore is required even if no pdeath_sig present
> 
> Like attached?
> 
Not exactly

> +
> +		if (unlikely(item->pid.virt == INIT_PID))
> +			maybe_clone_parent(item, &ca);

If we restore non-containerized tree the init's pid will not be 1.
Need to compare item with root_item.


More information about the CRIU mailing list