[CRIU] Questions about CRIU.

Christopher Covington cov at codeaurora.org
Tue Jul 8 09:08:41 PDT 2014


On 07/07/2014 11:29 AM, Fabio Giangrande wrote:
> Hello. I have some questions about the project CRIU for you. I searched in the
> archive of mails of CRIU and on the site http://www.criu.org, but I haven't
> found answer for these requests, so I wonder if you could kindly clarify me about.
> 
> 1. When we restore processes, we have to give to every process the same pid
> that has previously. If we restore the process hierarchy from init(1), a
> namespace is created automatically for avoid duplicate pids. Instead, when we
> don't restore the process hierarchy from init, how can we avoid problems with
> duplicate pids?

I use the following procedure to avoid such PID collisions.

unshare -fp -- criu restore

I posted a small patch to make this work for CRIU a while back but it needed
to be rebased. I hope to revisit it soon.

Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.


More information about the CRIU mailing list