[CRIU] [PATCH 6/9] pstree: Allow to dump and restore session non-leaders if --ext-tty passed

Cyrill Gorcunov gorcunov at openvz.org
Tue Oct 9 11:40:53 EDT 2012


If --ext-tty passed we allow to dump and restpre session non-leaders.

This slightly changes the behaviour or the tool. If previously
we allowed to dump non-leaders after this commit we refuse to
do that if not explicitly requested.

Note that in sake of tty restore (which will be addressed in
further patches) we do inherit process group for root task.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c        |    2 +-
 include/pstree.h |    9 ++++++-
 pstree.c         |   66 +++++++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 72 insertions(+), 5 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-pstree-Allow-to-dump-and-restore-session-non-leaders.patch
Type: text/x-patch
Size: 4538 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20121009/11cc91fc/0006-pstree-Allow-to-dump-and-restore-session-non-leaders.bin


More information about the CRIU mailing list