<div dir="ltr">On Thu, Jun 4, 2015 at 1:23 PM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 06/04/2015 05:35 PM, CRIU criu wrote:<br>
> Can CRIU be used to checkpoint/restore a single process and not a process tree?<br>
<br>
</span>Without a patch -- no, it always scans for the process subtree starting from the<br>
pid given.<br>
<span class=""><br></span></blockquote><div><br></div><div>Is there a patch already to do this?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
> I keep hitting this error message:<br>
><br>
> if (item->sid == 0) {<br>
><br>
> pr_err("A session leader of %d(%d) is outside of its pid namespace\n",<br>
><br>
> item->pid.real, item->pid.virt);<br>
><br>
> goto err_cure;<br>
><br>
> }<br>
<br>
</span>But it's not about dumping a single task or a subtree, it's about the resources<br>
leaking outside of what you dump :)<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>I agree. However, an Android process behaves very differently from a regular linux process - some of the resources are released when a process goes in the background so we don't have to dump everything because released resources will be reacquired upon resume (restore) when brought into foreground again. That means the way we resume will change for Android. I will fix this as I go along.<br> <br></div><div>I also see "Uncollected sockets! Will probably fail later." error message. What does it mean?<br><br></div><div>Thanks for your help!<br><br></div><div>-Lilo<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><font color="#888888">
-- Pavel<br>
</font></span></blockquote></div><br></div></div>