[CRIU] [PATCH 3/6] pstree: Allow to dump and restore session non-leaders if --shell-job passed

Cyrill Gorcunov gorcunov at openvz.org
Tue Oct 16 03:27:14 EDT 2012


If --shell-job 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>
---
 include/pstree.h |    7 ++++
 pstree.c         |   84 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 89 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-pstree-Allow-to-dump-and-restore-session-non-leaders.patch
Type: text/x-patch
Size: 4359 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20121016/14b69ba4/0003-pstree-Allow-to-dump-and-restore-session-non-leaders.bin


More information about the CRIU mailing list