[CRIU] Re: [PATCH cr 1/2] restore: inherit current sid and pgid if
a root task isn't a leader
Pavel Emelyanov
xemul at parallels.com
Thu Sep 6 11:55:09 EDT 2012
On 09/06/2012 01:00 AM, Andrey Vagin wrote:
>
> 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(-)
>
> @@ -50,6 +50,11 @@ OPTIONS
> -x|--ext-unix-sk::
> Dump external unix sockets.
>
> +--partion-session::
partion?
> + Allow to checkpoint/restore a part of a process session.
> + If a root task isn't a session leader, it will be restored in a current
> + session.
> +
> -t|--tree <pid>::
> Checkpoint the whole process tree starting from 'pid'.
>
More information about the CRIU
mailing list