[CRIU] Error in dump parent process, with child process in different namespace
Pavel Emelyanov
xemul at parallels.com
Thu Jul 30 09:48:06 PDT 2015
On 07/30/2015 07:37 PM, Hui Kang wrote:
> Hi, Pavel,
> Now I run criu to dump the child the process directly by
>
> $ criu dump --tree 28576 -vvvv -n
>
> 28576 is the pid of the child process. The error log is below. Thanks.
>
> - Hui
>
> pie: Daemon wais for command
> (00.036044) Sent msg to daemon 12 0 0
> (00.036093) Wait for ack 12 on daemon socket
> pie: __fetched msg: 12 0 0
> pie: __sent ack msg: 12 12 0
> pie: Daemon wais for command
> (00.036284) Fetched ack: 12 12 0
> (00.036339) sid=0 pgid=1 pid=1
> (00.036382) Error (cr-dump.c:1577): A session leader of 28576(1) is outside of its pid namespace
The child process shares session with parent. You can either use -j option
for dump (and restore) to make criu ignore the task's session, or call setsid()
in the child process to create its own one.
-- Pavel
More information about the CRIU
mailing list