[CRIU] PID namespace patch -

Pavel Emelyanov xemul at virtuozzo.com
Fri Aug 19 06:36:56 PDT 2016


On 08/19/2016 12:50 AM, David Turvene wrote:
> Hi Pavel -
> 
> I tried your python patch.  criu checkpoint and restore worked.  criu-ns.py checkpoint worked, criu-ns.py restore 
> failed.  Then I did criu restore and it worked.
> 
> I have attached the session dump with log from failed criu restore.

Hm... Here's the error that happened:

(00.085839)  16137: tty: open driver pts id 0x4 index 2 (master 0 sid 15782 pgrp 16160 inherit 1)
(00.085945)  16137: tty: Migrated slave peer 4 -> to fd 0
(00.086063)  16137: tty: Restore inherited group 0
(00.086164)  16137: Error (tty.c:650): tty: Failed to set group 0 on 0: No such process

It looks like moving into pid namespace ... slightly screws things up
when it comes to inheriting TTYs from the caller.

I'll try to check this soon. For you to move forward, you can try playing with C/R of
tasks that don't require playing with the --shell-job option :)

-- Pavel


More information about the CRIU mailing list