[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 16:32:43 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 | 9 ++++
pstree.c | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 143 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: 5976 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20121017/db7f4623/0003-pstree-Allow-to-dump-and-restore-session-non-leaders-0001.bin
More information about the CRIU
mailing list