[CRIU] [PATCH cr] restore: inherit current sid and pgid if a root task isn't a leader (v2)

Andrey Vagin avagin at openvz.org
Thu Sep 6 17:25: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.

v2: typo fix

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: 3778 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120907/e38aa87b/0001-restore-inherit-current-sid-and-pgid-if-a-root-task-.bin


More information about the CRIU mailing list