[CRIU] [PATCH cr 1/2] restore: inherit current sid and pgid if a root task isn't a leader

Andrey Vagin avagin at openvz.org
Wed Sep 5 17:00:11 EDT 2012


crtools can dump a subtree, where a root task isn't a session leader.
E.g: you want to dump "top" and restore it in another terminal.

In this case crtools should not try to restore sid of this task and
all other tasks from this session. All this tasks will inherit sid
from a current process.

All that is true for pgid and a control tty.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 Documentation/crtools.txt |    5 +++++
 cr-dump.c                 |    6 ++++++
 cr-restore.c              |   14 ++++++++++++++
 crtools.c                 |    5 +++++
 include/crtools.h         |    1 +
 pstree.c                  |    4 ++++
 6 files changed, 35 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-restore-inherit-current-sid-and-pgid-if-a-root-task-.patch
Type: text/x-patch
Size: 3758 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120906/9eb23688/0001-restore-inherit-current-sid-and-pgid-if-a-root-task-.bin


More information about the CRIU mailing list